[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.LinearGradientBrush

Class LinearGradientBrush

Namespace
GrapeCity.Documents.Drawing
Assembly
GcDocs.Imaging.dll

Represents a linear gradient brush.

public class LinearGradientBrush : Brush
Inheritance
object
LinearGradientBrush
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

LinearGradientBrush(LinearGradientBrush)

Creates a copy of a LinearGradientBrush object.

public LinearGradientBrush(LinearGradientBrush source)

Parameters

source LinearGradientBrush

LinearGradientBrush(Color, Color)

Initializes a new instance of the LinearGradientBrush class.

public LinearGradientBrush(Color startColor, Color endColor)

Parameters

startColor System.Drawing.Color

The start gradient color.

endColor System.Drawing.Color

The end gradient color.

LinearGradientBrush(Color, PointF, Color, PointF)

Initializes a new instance of the LinearGradientBrush class.

public LinearGradientBrush(Color startColor, PointF startPoint, Color endColor, PointF endPoint)

Parameters

startColor System.Drawing.Color

The start gradient color.

startPoint System.Drawing.PointF

The start gradient point.

endColor System.Drawing.Color

The end gradient color.

endPoint System.Drawing.PointF

The end gradient point.

Properties

EndColor

Gets or sets the ending gradient color.

public Color EndColor { get; set; }

Property Value

System.Drawing.Color

EndPoint

Gets or sets the coordinates of the end point of the current linear gradient brush.

(0,0) is the top-left corner, (1,1) is the bottom-right corner.

public PointF EndPoint { get; set; }

Property Value

System.Drawing.PointF

GradientStops

Gets or sets the collection of gradient stops.

public IList<GradientStop> GradientStops { get; set; }

Property Value

System.Collections.Generic.IList<T><GradientStop>

StartColor

Gets or sets the starting gradient color.

public Color StartColor { get; set; }

Property Value

System.Drawing.Color

StartPoint

Gets or sets the coordinates of the start point of the current linear gradient brush.

(0,0) is the top-left corner, (1,1) is the bottom-right corner.

public PointF StartPoint { get; set; }

Property Value

System.Drawing.PointF

Visible

Gets a value indicating whether the brush is actually visible.

public override bool Visible { get; }

Property Value

bool

Methods

AreSemitransparentColorsUsed()

Returns a value indicating whether brush uses semi-transparent colors.

public bool AreSemitransparentColorsUsed()

Returns

bool

SameBrush(Brush)

Returns True if the specified brush is the same as the current brush.

protected override bool SameBrush(Brush brush)

Parameters

brush Brush

Returns

bool