Class LinearGradient
Represents a linear gradient that transitions colors along a straight line between two specified points.
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class LinearGradient : Gradient, IEquatable<ColorBase>, IInstanceIdOwner, IGradient, IPatternColor
Constructors
LinearGradient(Point, Point)
Initializes a new instance of the LinearGradient class with the specified start and end points.
Declaration
public LinearGradient(Point startPoint, Point endPoint)
Parameters
|
System.Windows.Point
startPoint
The starting point coordinates where the gradient begins. |
|
System.Windows.Point
endPoint
The ending point coordinates where the gradient ends. |
Methods
Equals(ColorBase)
Determines whether the specified linear gradient is equal to the current linear gradient by comparing their properties.
Declaration
public override bool Equals(ColorBase other)
Parameters
|
ColorBase
other
The linear gradient to compare with the current gradient. |
Returns
|
System.Boolean
True if the specified linear gradient is equal to the current linear gradient; otherwise, false. |