New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
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

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

C#
public LinearGradient(Point startPoint, Point endPoint)
Parameters:startPointPoint

The starting point coordinates where the gradient begins.

endPointPoint

The ending point coordinates where the gradient ends.

Methods

Compares this linear gradient with another color for value equality.

C#
public override bool Equals(ColorBase other)
Parameters:otherColorBase

The other color to compare.

Returns:

bool

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

Overrides: Gradient.Equals(ColorBase)