LinearGradientBrush Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| LinearGradientBrush() |
Initializes a new instance of the LinearGradientBrush class. |
| LinearGradientBrush(GradientStopCollection) |
Initializes a new instance of the LinearGradientBrush class with the specified gradient stops. |
| LinearGradientBrush(GradientStopCollection, Point, Point) |
Initializes a new instance of the LinearGradientBrush class with the specified gradient stops and points. |
LinearGradientBrush()
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
Initializes a new instance of the LinearGradientBrush class.
public:
LinearGradientBrush();
public LinearGradientBrush();
Public Sub New ()
Applies to
LinearGradientBrush(GradientStopCollection)
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
Initializes a new instance of the LinearGradientBrush class with the specified gradient stops.
public:
LinearGradientBrush(Microsoft::Maui::Controls::GradientStopCollection ^ gradientStops);
public LinearGradientBrush(Microsoft.Maui.Controls.GradientStopCollection gradientStops);
new Microsoft.Maui.Controls.LinearGradientBrush : Microsoft.Maui.Controls.GradientStopCollection -> Microsoft.Maui.Controls.LinearGradientBrush
Public Sub New (gradientStops As GradientStopCollection)
Parameters
- gradientStops
- GradientStopCollection
The collection of gradient stops.
Applies to
LinearGradientBrush(GradientStopCollection, Point, Point)
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
- Source:
- LinearGradientBrush.cs
Initializes a new instance of the LinearGradientBrush class with the specified gradient stops and points.
public:
LinearGradientBrush(Microsoft::Maui::Controls::GradientStopCollection ^ gradientStops, Microsoft::Maui::Graphics::Point startPoint, Microsoft::Maui::Graphics::Point endPoint);
public LinearGradientBrush(Microsoft.Maui.Controls.GradientStopCollection gradientStops, Microsoft.Maui.Graphics.Point startPoint, Microsoft.Maui.Graphics.Point endPoint);
new Microsoft.Maui.Controls.LinearGradientBrush : Microsoft.Maui.Controls.GradientStopCollection * Microsoft.Maui.Graphics.Point * Microsoft.Maui.Graphics.Point -> Microsoft.Maui.Controls.LinearGradientBrush
Public Sub New (gradientStops As GradientStopCollection, startPoint As Point, endPoint As Point)
Parameters
- gradientStops
- GradientStopCollection
The collection of gradient stops.
- startPoint
- Point
The starting point of the gradient.
- endPoint
- Point
The ending point of the gradient.