RadialGradientBrush Constructors

Definition

Initializes a new instance of the RadialGradientBrush class.

Overloads

RadialGradientBrush()

Initializes a new instance of the RadialGradientBrush class.

RadialGradientBrush(GradientStopCollection)

Initializes a new instance of the RadialGradientBrush class that has the specified gradient stops.

RadialGradientBrush(Color, Color)

Initializes a new instance of the RadialGradientBrush class with the specified start and stop colors.

RadialGradientBrush()

Initializes a new instance of the RadialGradientBrush class.

C#
public RadialGradientBrush();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

RadialGradientBrush(GradientStopCollection)

Initializes a new instance of the RadialGradientBrush class that has the specified gradient stops.

C#
public RadialGradientBrush(System.Windows.Media.GradientStopCollection gradientStopCollection);

Parameters

gradientStopCollection
GradientStopCollection

The gradient stops to set on this brush.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

RadialGradientBrush(Color, Color)

Initializes a new instance of the RadialGradientBrush class with the specified start and stop colors.

C#
public RadialGradientBrush(System.Windows.Media.Color startColor, System.Windows.Media.Color endColor);

Parameters

startColor
Color

Color value at the focus (GradientOrigin) of the radial gradient.

endColor
Color

Color value at the outer edge of the radial gradient.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10