Class
GradientStop

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:

cs-api-definition
public class GradientStop

Inheritance: objectGradientStop

Constructors

GradientStop(SimpleColor, double)

Creates a GradientStop with the specified color and offset.

Declaration

cs-api-definition
public GradientStop(SimpleColor color, double offset)

Parameters

color

SimpleColor

The color at this gradient stop.

offset

double

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

Properties

Color

Gets the color associated with this stop.

Declaration

cs-api-definition
public SimpleColor Color { get; }

Property Value

SimpleColor

The stop color.

Offset

Gets the normalized position of this stop in the gradient.

Declaration

cs-api-definition
public double Offset { get; }

Property Value

double

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