Class Gradient
Represents the base class for gradient colors that transition between multiple colors.
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public abstract class Gradient : PatternColor, IEquatable<ColorBase>, IInstanceIdOwner, IGradient, IPatternColor
Constructors
Gradient(Point, Point)
Initializes a new instance of the Gradient class with the specified start and end points.
Declaration
public Gradient(Point startPoint, Point endPoint)
Parameters
System.Windows.Point
startPoint
The starting point of the gradient. |
System.Windows.Point
endPoint
The ending point of the gradient. |
Gradient(Point, Point, IPosition)
Initializes a new instance of the Gradient class with the specified points and position.
Declaration
public Gradient(Point startPoint, Point endPoint, IPosition position)
Parameters
System.Windows.Point
startPoint
The starting point of the gradient. |
System.Windows.Point
endPoint
The ending point of the gradient. |
IPosition
position
The position transformation matrix for the gradient. |
Properties
Background
Gets or sets the background color used when the gradient doesn't cover the entire area.
Declaration
public ColorBase Background { get; set; }
Property Value
ColorBase
The background color, or null if no background color is specified. |
EndPoint
Gets or sets the ending point coordinates of the gradient.
Declaration
public Point EndPoint { get; set; }
Property Value
System.Windows.Point
The ending point of the gradient. |
ExtendAfter
Gets or sets a value indicating whether the gradient should extend after the end point.
Declaration
public bool ExtendAfter { get; set; }
Property Value
System.Boolean
True if the gradient extends after the end point; otherwise, false. |
ExtendBefore
Gets or sets a value indicating whether the gradient should extend before the start point.
Declaration
public bool ExtendBefore { get; set; }
Property Value
System.Boolean
True if the gradient extends before the start point; otherwise, false. |
GradientStops
Gets the collection of gradient stops that define color transitions within the gradient.
Declaration
public GradientStopCollection GradientStops { get; }
Property Value
GradientStopCollection
The gradient stops collection. |
Position
Gets or sets the position transformation matrix applied to the gradient.
Declaration
public override IPosition Position { get; set; }
Property Value
IPosition
The position transformation matrix. |
Overrides
StartPoint
Gets or sets the starting point coordinates of the gradient.
Declaration
public Point StartPoint { get; set; }
Property Value
System.Windows.Point
The starting point of the gradient. |
Methods
Equals(ColorBase)
Equals the specified other.
Declaration
public override bool Equals(ColorBase other)
Parameters
ColorBase
other
The other. |
Returns
System.Boolean
True if the specified gradient is equal to the current gradient; otherwise, false. |