Share via


GradientBrush.GradientStops Property

Definition

Gets or sets the brush's gradient stops.

public:
 property GradientStopCollection ^ GradientStops { GradientStopCollection ^ get(); void set(GradientStopCollection ^ value); };
GradientStopCollection GradientStops();

void GradientStops(GradientStopCollection value);
public GradientStopCollection GradientStops { get; set; }
var gradientStopCollection = gradientBrush.gradientStops;
gradientBrush.gradientStops = gradientStopCollection;
Public Property GradientStops As GradientStopCollection
<gradientBrush>
  oneOrMoreGradientStops
</gradientBrush>

Property Value

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.

Applies to