Skip to main content
.NET Framework Class Library
GradientStopOffset Property

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

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Property Offset As [%$TOPIC/ms612368_en-us_VS_110_1_0_0_0_0%]
public [%$TOPIC/ms612368_en-us_VS_110_1_0_1_0_0%] Offset { get; set; }
public:
property [%$TOPIC/ms612368_en-us_VS_110_1_0_2_0_0%] Offset {
	[%$TOPIC/ms612368_en-us_VS_110_1_0_2_0_1%] get ();
	void set ([%$TOPIC/ms612368_en-us_VS_110_1_0_2_0_2%] value);
}
member Offset : [%$TOPIC/ms612368_en-us_VS_110_1_0_3_0_0%] with get, set
function get Offset () : [%$TOPIC/ms612368_en-us_VS_110_1_0_4_0_0%] 
function set Offset (value : [%$TOPIC/ms612368_en-us_VS_110_1_0_4_0_1%])
<object Offset="[%$TOPIC/ms612368_en-us_VS_110_1_0_5_0_0%]" .../>

Property Value

Type: SystemDouble
The relative location of this gradient stop along the gradient vector. The default value is 0.0.
Dependency Property Information

Identifier field

OffsetProperty

Metadata properties set to true

None

Remarks

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.

Examples
HOWDOI# graphicsmm_gradientstop_animatecoloroffset
Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1