LinearGradientPaint 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
LinearGradientPaint() |
Initializes a new instance of the LinearGradientPaint class with default start point (0,0) and end point (1,1). |
LinearGradientPaint(GradientPaint) |
Initializes a new instance of the LinearGradientPaint class with properties from another gradient paint. |
LinearGradientPaint(PaintGradientStop[]) |
Initializes a new instance of the LinearGradientPaint class with the specified gradient stops. |
LinearGradientPaint(Point, Point) |
Initializes a new instance of the LinearGradientPaint class with the specified start and end points. |
LinearGradientPaint(PaintGradientStop[], Point, Point) |
Initializes a new instance of the LinearGradientPaint class with the specified gradient stops, start point, and end point. |
LinearGradientPaint()
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
Initializes a new instance of the LinearGradientPaint class with default start point (0,0) and end point (1,1).
public:
LinearGradientPaint();
public LinearGradientPaint();
Public Sub New ()
Applies to
LinearGradientPaint(GradientPaint)
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
Initializes a new instance of the LinearGradientPaint class with properties from another gradient paint.
public:
LinearGradientPaint(Microsoft::Maui::Graphics::GradientPaint ^ gradientPaint);
public LinearGradientPaint(Microsoft.Maui.Graphics.GradientPaint gradientPaint);
new Microsoft.Maui.Graphics.LinearGradientPaint : Microsoft.Maui.Graphics.GradientPaint -> Microsoft.Maui.Graphics.LinearGradientPaint
Public Sub New (gradientPaint As GradientPaint)
Parameters
- gradientPaint
- GradientPaint
The gradient paint to copy properties from.
Applies to
LinearGradientPaint(PaintGradientStop[])
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
Initializes a new instance of the LinearGradientPaint class with the specified gradient stops.
public:
LinearGradientPaint(cli::array <Microsoft::Maui::Graphics::PaintGradientStop ^> ^ gradientStops);
public LinearGradientPaint(Microsoft.Maui.Graphics.PaintGradientStop[] gradientStops);
new Microsoft.Maui.Graphics.LinearGradientPaint : Microsoft.Maui.Graphics.PaintGradientStop[] -> Microsoft.Maui.Graphics.LinearGradientPaint
Public Sub New (gradientStops As PaintGradientStop())
Parameters
- gradientStops
- PaintGradientStop[]
The array of gradient stops that define color transitions.
Exceptions
Thrown when gradientStops
is null.
Applies to
LinearGradientPaint(Point, Point)
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
Initializes a new instance of the LinearGradientPaint class with the specified start and end points.
public:
LinearGradientPaint(Microsoft::Maui::Graphics::Point startPoint, Microsoft::Maui::Graphics::Point endPoint);
public LinearGradientPaint(Microsoft.Maui.Graphics.Point startPoint, Microsoft.Maui.Graphics.Point endPoint);
new Microsoft.Maui.Graphics.LinearGradientPaint : Microsoft.Maui.Graphics.Point * Microsoft.Maui.Graphics.Point -> Microsoft.Maui.Graphics.LinearGradientPaint
Public Sub New (startPoint As Point, endPoint As Point)
Parameters
- startPoint
- Point
The start point of the gradient.
- endPoint
- Point
The end point of the gradient.
Applies to
LinearGradientPaint(PaintGradientStop[], Point, Point)
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
- Source:
- LinearGradientPaint.cs
Initializes a new instance of the LinearGradientPaint class with the specified gradient stops, start point, and end point.
public:
LinearGradientPaint(cli::array <Microsoft::Maui::Graphics::PaintGradientStop ^> ^ gradientStops, Microsoft::Maui::Graphics::Point startPoint, Microsoft::Maui::Graphics::Point endPoint);
public LinearGradientPaint(Microsoft.Maui.Graphics.PaintGradientStop[] gradientStops, Microsoft.Maui.Graphics.Point startPoint, Microsoft.Maui.Graphics.Point endPoint);
new Microsoft.Maui.Graphics.LinearGradientPaint : Microsoft.Maui.Graphics.PaintGradientStop[] * Microsoft.Maui.Graphics.Point * Microsoft.Maui.Graphics.Point -> Microsoft.Maui.Graphics.LinearGradientPaint
Public Sub New (gradientStops As PaintGradientStop(), startPoint As Point, endPoint As Point)
Parameters
- gradientStops
- PaintGradientStop[]
The array of gradient stops that define color transitions.
- startPoint
- Point
The start point of the gradient.
- endPoint
- Point
The end point of the gradient.
Exceptions
Thrown when gradientStops
is null.