Class GradientStop
Represents a gradient stop that defines a color and its position within a gradient.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class GradientStop : IGradientStop
Constructors
GradientStop(SimpleColor, Double)
Initializes a new instance of the GradientStop class with the specified color and offset.
Declaration
public GradientStop(SimpleColor color, double offset)
Parameters
SimpleColor
color
The color at this gradient stop. |
System.Double
offset
The position of this stop along the gradient, a value between 0.0 and 1.0. |
Properties
Color
Gets the color associated with this gradient stop.
Declaration
public SimpleColor Color { get; }
Property Value
SimpleColor
The color at this position in the gradient. |
Offset
Gets the position of this gradient stop along the gradient line.
Declaration
public double Offset { get; }
Property Value
System.Double
The offset value between 0.0 (start) and 1.0 (end) of the gradient. |