[]
        
(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
LinearGradientBrush
Inherited Members

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 Color

The start gradient color.

endColor 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 Color

The start gradient color.

startPoint PointF

The start gradient point.

endColor Color

The end gradient color.

endPoint PointF

The end gradient point.

Properties

EndColor

Gets or sets the ending gradient color.

public Color EndColor { get; set; }

Property Value

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

PointF

GradientStops

Gets or sets the collection of gradient stops.

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

Property Value

IList<GradientStop>

StartColor

Gets or sets the starting gradient color.

public Color StartColor { get; set; }

Property Value

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

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