Udostępnij za pośrednictwem


LinearGradientBrush Constructors

Definition

Overloads

LinearGradientBrush()

Initializes a new instance of the LinearGradientBrush class.

LinearGradientBrush(GradientStopCollection, Double)

Initializes a new instance of the LinearGradientBrush class that has the specified GradientStopCollection and angle.

LinearGradientBrush()

Initializes a new instance of the LinearGradientBrush class.

public:
 LinearGradientBrush();
 LinearGradientBrush();
public LinearGradientBrush();
function LinearGradientBrush()
Public Sub New ()

Applies to

LinearGradientBrush(GradientStopCollection, Double)

Initializes a new instance of the LinearGradientBrush class that has the specified GradientStopCollection and angle.

public:
 LinearGradientBrush(GradientStopCollection ^ gradientStopCollection, double angle);
 LinearGradientBrush(GradientStopCollection const& gradientStopCollection, double const& angle);
public LinearGradientBrush(GradientStopCollection gradientStopCollection, double angle);
function LinearGradientBrush(gradientStopCollection, angle)
Public Sub New (gradientStopCollection As GradientStopCollection, angle As Double)

Parameters

gradientStopCollection
GradientStopCollection

The GradientStops to set on this brush.

angle
Double

double

A System.Double that represents the angle, in degrees, of the gradient. A value of 0 creates a horizontal gradient, and a value of 90 creates a vertical gradient. Negative values are permitted, as are values over 360 (which are treated as mod 360).

Applies to