New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a gradient stop that defines a color and position within a gradient.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadGradientStop

Inheritance: objectRadGradientStop

Constructors

Initializes a new instance of the RadGradientStop class.

C#
public RadGradientStop()

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

C#
public RadGradientStop(Color color, double offset)
Parameters:colorColor

The color of the gradient stop.

offsetdouble

The offset position of the gradient stop (0.0 to 1.0).

Properties

Color

Color

Gets or sets the color of the gradient stop.

C#
public Color Color { get; set; }
Property Value:

The color value.

Gets or sets the offset position of the gradient stop.

C#
public double Offset { get; set; }
Property Value:

The offset value between 0.0 and 1.0.