Editar

Compartir vía


LinearGradientBrush Constructors

Definition

Initializes a new instance of the LinearGradientBrush class.

Overloads

LinearGradientBrush()

Initializes a new instance of the LinearGradientBrush class.

LinearGradientBrush(GradientStopCollection)

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

LinearGradientBrush(GradientStopCollection, Double)

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

LinearGradientBrush(Color, Color, Double)

Initializes a new instance of the LinearGradientBrush class that has the specified start Color, end Color, and angle.

LinearGradientBrush(GradientStopCollection, Point, Point)

Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops, StartPoint, and EndPoint.

LinearGradientBrush(Color, Color, Point, Point)

Initializes a new instance of the LinearGradientBrush class that has the specified start Color, end Color, StartPoint, and EndPoint.

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

LinearGradientBrush()

Initializes a new instance of the LinearGradientBrush class.

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

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

Applies to

LinearGradientBrush(GradientStopCollection)

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

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)

Parameters

gradientStopCollection
GradientStopCollection

The GradientStops to set on this brush.

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

See also

Applies to

LinearGradientBrush(GradientStopCollection, Double)

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

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)

Parameters

gradientStopCollection
GradientStopCollection

The GradientStops to set on this brush.

angle
Double

A Double that represents the angle, in degrees, of the gradient. A value of 0.0 creates a horizontal gradient, and a value of 90.0 creates a vertical gradient.

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

Applies to

LinearGradientBrush(Color, Color, Double)

Initializes a new instance of the LinearGradientBrush class that has the specified start Color, end Color, and angle.

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)

Parameters

startColor
Color

The Color at offset 0.0.

endColor
Color

The Color at offset 1.0.

angle
Double

A Double that represents the angle, in degrees, of the gradient. A value of 0.0 creates a horizontal gradient, and a value of 90.0 creates a vertical gradient.

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

Applies to

LinearGradientBrush(GradientStopCollection, Point, Point)

Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops, StartPoint, and 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)

Parameters

gradientStopCollection
GradientStopCollection

The GradientStops to set on this brush.

startPoint
Point

The StartPoint of the gradient.

endPoint
Point

The EndPoint of the gradient.

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

Applies to

LinearGradientBrush(Color, Color, Point, Point)

Initializes a new instance of the LinearGradientBrush class that has the specified start Color, end Color, StartPoint, and 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)

Parameters

startColor
Color

The Color at offset 0.0.

endColor
Color

The Color at offset 1.0.

startPoint
Point

The StartPoint of the gradient.

endPoint
Point

The EndPoint of the gradient.

Remarks

The MappingMode of the brush is initialized to RelativeToBoundingBox.

Applies to