Skip to main content
.NET Framework Class Library
GradientBrushGradientStops Property

Gets or sets the brush's gradient stops.

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 GradientStops As [%$TOPIC/ms612354_en-us_VS_110_1_0_0_0_0%]
public [%$TOPIC/ms612354_en-us_VS_110_1_0_1_0_0%] GradientStops { get; set; }
public:
property [%$TOPIC/ms612354_en-us_VS_110_1_0_2_0_0%]^ GradientStops {
	[%$TOPIC/ms612354_en-us_VS_110_1_0_2_0_1%]^ get ();
	void set ([%$TOPIC/ms612354_en-us_VS_110_1_0_2_0_2%]^ value);
}
member GradientStops : [%$TOPIC/ms612354_en-us_VS_110_1_0_3_0_0%] with get, set
function get GradientStops () : [%$TOPIC/ms612354_en-us_VS_110_1_0_4_0_0%] 
function set GradientStops (value : [%$TOPIC/ms612354_en-us_VS_110_1_0_4_0_1%])
<object>
  <[%$TOPIC/ms612354_en-us_VS_110_1_0_5_0_0%] .../>
</object>

Property Value

Type: System.Windows.MediaGradientStopCollection
A collection of the GradientStop objects associated with the brush, each of which specifies a color and an offset along the brush's gradient axis. The default is an empty GradientStopCollection.
Dependency Property Information

Identifier field

GradientStopsProperty

Metadata properties set to true

None

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