GradientStop.Offset Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the location of the gradient stop within the gradient vector.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public double Offset { get; set; }

Property Value

Type: System.Double

The relative location of this gradient stop along the gradient vector. The default value is 0.0.

A value of 0.0 specifies that the stop is positioned at the beginning of the gradient vector, while a value of 1.0 specifies that the stop is positioned at the end of the gradient vector.

Identifier field


Metadata properties set to true


.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top