Share via


LinearGradientBrush Konstruktoren

Definition

Überlädt

LinearGradientBrush()

Initialisiert eine neue instance der LinearGradientBrush-Klasse.

LinearGradientBrush(GradientStopCollection, Double)

Initialisiert eine neue instance der LinearGradientBrush-Klasse, die über die angegebene GradientStopCollection und den angegebenen Winkel verfügt.

LinearGradientBrush()

Initialisiert eine neue instance der LinearGradientBrush-Klasse.

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

Gilt für:

LinearGradientBrush(GradientStopCollection, Double)

Initialisiert eine neue instance der LinearGradientBrush-Klasse, die über die angegebene GradientStopCollection und den angegebenen Winkel verfügt.

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)

Parameter

gradientStopCollection
GradientStopCollection

Die GradientStops , die für diesen Pinsel festgelegt werden sollen.

angle
Double

double

Ein System.Double , der den Winkel des Farbverlaufs in Grad darstellt. Mit dem Wert 0 wird ein horizontaler Farbverlauf erstellt, und mit dem Wert 90 wird ein vertikaler Farbverlauf erstellt. Negative Werte sind zulässig, ebenso Werte über 360 (die als Mod 360 behandelt werden).

Gilt für: