Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GradientStop.Offset Property


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

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

member Offset : float with 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
© 2017 Microsoft