Udostępnij za pośrednictwem


LinearGradientBrush Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy LinearGradientBrush.

Przeciążenia

LinearGradientBrush()

Inicjuje nowe wystąpienie klasy LinearGradientBrush.

LinearGradientBrush(GradientStopCollection)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, która ma określony gradient zatrzymuje.

LinearGradientBrush(GradientStopCollection, Double)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, która ma określony GradientStopCollection kąt i .

LinearGradientBrush(Color, Color, Double)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, które ma określony początek Color, koniec Colori kąt.

LinearGradientBrush(GradientStopCollection, Point, Point)

Inicjuje LinearGradientBrush nowe wystąpienie klasy z określonymi stopami gradientu , StartPointi EndPoint.

LinearGradientBrush(Color, Color, Point, Point)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, która ma określony początek Color, koniec Color, StartPointi EndPoint.

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

LinearGradientBrush()

Inicjuje nowe wystąpienie klasy LinearGradientBrush.

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

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

Dotyczy

LinearGradientBrush(GradientStopCollection)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, która ma określony gradient zatrzymuje.

public:
 LinearGradientBrush(System::Windows::Media::GradientStopCollection ^ gradientStopCollection);
public LinearGradientBrush (System.Windows.Media.GradientStopCollection gradientStopCollection);
new System.Windows.Media.LinearGradientBrush : System.Windows.Media.GradientStopCollection -> System.Windows.Media.LinearGradientBrush
Public Sub New (gradientStopCollection As GradientStopCollection)

Parametry

gradientStopCollection
GradientStopCollection

Element GradientStops do ustawienia na tym pędzlu.

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

Zobacz też

Dotyczy

LinearGradientBrush(GradientStopCollection, Double)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, która ma określony GradientStopCollection kąt i .

public:
 LinearGradientBrush(System::Windows::Media::GradientStopCollection ^ gradientStopCollection, double angle);
public LinearGradientBrush (System.Windows.Media.GradientStopCollection gradientStopCollection, double angle);
new System.Windows.Media.LinearGradientBrush : System.Windows.Media.GradientStopCollection * double -> System.Windows.Media.LinearGradientBrush
Public Sub New (gradientStopCollection As GradientStopCollection, angle As Double)

Parametry

gradientStopCollection
GradientStopCollection

Element GradientStops do ustawienia na tym pędzlu.

angle
Double

Wartość Double reprezentująca kąt w stopniach gradientu. Wartość 0,0 tworzy gradient poziomy, a wartość 90,0 tworzy gradient pionowy.

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

Dotyczy

LinearGradientBrush(Color, Color, Double)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, które ma określony początek Color, koniec Colori kąt.

public:
 LinearGradientBrush(System::Windows::Media::Color startColor, System::Windows::Media::Color endColor, double angle);
public LinearGradientBrush (System.Windows.Media.Color startColor, System.Windows.Media.Color endColor, double angle);
new System.Windows.Media.LinearGradientBrush : System.Windows.Media.Color * System.Windows.Media.Color * double -> System.Windows.Media.LinearGradientBrush
Public Sub New (startColor As Color, endColor As Color, angle As Double)

Parametry

startColor
Color

Wartość Color przesunięcia 0.0.

endColor
Color

Wartość Color przesunięcia 1.0.

angle
Double

Wartość Double reprezentująca kąt w stopniach gradientu. Wartość 0,0 tworzy gradient poziomy, a wartość 90,0 tworzy gradient pionowy.

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

Dotyczy

LinearGradientBrush(GradientStopCollection, Point, Point)

Inicjuje LinearGradientBrush nowe wystąpienie klasy z określonymi stopami gradientu , StartPointi EndPoint.

public:
 LinearGradientBrush(System::Windows::Media::GradientStopCollection ^ gradientStopCollection, System::Windows::Point startPoint, System::Windows::Point endPoint);
public LinearGradientBrush (System.Windows.Media.GradientStopCollection gradientStopCollection, System.Windows.Point startPoint, System.Windows.Point endPoint);
new System.Windows.Media.LinearGradientBrush : System.Windows.Media.GradientStopCollection * System.Windows.Point * System.Windows.Point -> System.Windows.Media.LinearGradientBrush
Public Sub New (gradientStopCollection As GradientStopCollection, startPoint As Point, endPoint As Point)

Parametry

gradientStopCollection
GradientStopCollection

Element GradientStops do ustawienia na tym pędzlu.

startPoint
Point

Gradient StartPoint .

endPoint
Point

Gradient EndPoint .

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

Dotyczy

LinearGradientBrush(Color, Color, Point, Point)

Inicjuje LinearGradientBrush nowe wystąpienie klasy, która ma określony początek Color, koniec Color, StartPointi EndPoint.

public:
 LinearGradientBrush(System::Windows::Media::Color startColor, System::Windows::Media::Color endColor, System::Windows::Point startPoint, System::Windows::Point endPoint);
public LinearGradientBrush (System.Windows.Media.Color startColor, System.Windows.Media.Color endColor, System.Windows.Point startPoint, System.Windows.Point endPoint);
new System.Windows.Media.LinearGradientBrush : System.Windows.Media.Color * System.Windows.Media.Color * System.Windows.Point * System.Windows.Point -> System.Windows.Media.LinearGradientBrush
Public Sub New (startColor As Color, endColor As Color, startPoint As Point, endPoint As Point)

Parametry

startColor
Color

Wartość Color przesunięcia 0.0.

endColor
Color

Wartość Color przesunięcia 1.0.

startPoint
Point

Gradient StartPoint .

endPoint
Point

Gradient EndPoint .

Uwagi

Element MappingMode pędzla jest inicjowany do .RelativeToBoundingBox

Dotyczy