New to Telerik Document ProcessingStart a free 30-day trial

Color stop used in a gradient, pairing a color with its normalized position.

Definition

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

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class GradientStop

Inheritance: objectGradientStop

Constructors

Creates a GradientStop with the specified color and offset.

C#
public GradientStop(SimpleColor color, double offset)
Parameters:colorSimpleColor

The color at this gradient stop.

offsetdouble

The position of this stop along the gradient, a value between 0.0 and 1.0.

Properties

Gets the color associated with this stop.

C#
public SimpleColor Color { get; }
Property Value:

The stop color.

Gets the normalized position of this stop in the gradient.

C#
public double Offset { get; }
Property Value:

The offset between 0.0 (start) and 1.0 (end).