Class
LinearGradient

Linear gradient that interpolates colors along a straight line between two points; use for directional fills like fades and bands.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class LinearGradient : Gradient, IEquatable<ColorBase>

Inheritance: objectColorBasePatternColorGradientLinearGradient

Implements: IEquatable<ColorBase>

Inherited Members Gradient.StartPointGradient.EndPointGradient.ExtendBeforeGradient.ExtendAfterGradient.BackgroundGradient.GradientStopsGradient.PositionColorBase.Equals(object)ColorBase.GetHashCode()

Constructors

LinearGradient(Point, Point)

Creates a linear gradient between the specified start and end points.

Declaration

cs-api-definition
public LinearGradient(Point startPoint, Point endPoint)

Parameters

startPoint

Point

The starting point coordinates where the gradient begins.

endPoint

Point

The ending point coordinates where the gradient ends.

Methods

Equals(ColorBase)

Compares this linear gradient with another color for value equality.

Declaration

cs-api-definition
public override bool Equals(ColorBase other)

Parameters

other

ColorBase

The other color to compare.

Returns

bool

True if both represent equivalent linear gradients; otherwise, false.

Overrides Gradient.Equals(ColorBase)