Share via


GradientStop Constructors

Definition

Overloads

Name Description
GradientStop()

Initializes a new instance of the GradientStop class.

GradientStop(Color, Single)

Initializes a new instance of the GradientStop class with the specified color and offset.

GradientStop()

Source:
GradientStop.cs
Source:
GradientStop.cs
Source:
GradientStop.cs
Source:
GradientStop.cs

Initializes a new instance of the GradientStop class.

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

Applies to

GradientStop(Color, Single)

Source:
GradientStop.cs
Source:
GradientStop.cs
Source:
GradientStop.cs
Source:
GradientStop.cs

Initializes a new instance of the GradientStop class with the specified color and offset.

public:
 GradientStop(Microsoft::Maui::Graphics::Color ^ color, float offset);
public GradientStop(Microsoft.Maui.Graphics.Color color, float offset);
new Microsoft.Maui.Controls.GradientStop : Microsoft.Maui.Graphics.Color * single -> Microsoft.Maui.Controls.GradientStop
Public Sub New (color As Color, offset As Single)

Parameters

color
Color

The color of this gradient stop.

offset
Single

The position of this gradient stop (0.0 to 1.0).

Applies to