Skip to main content

ImmutableGradientStop Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Describes the location and color of a transition point in a gradient.

public class ImmutableGradientStop

Inheritance: object -> ImmutableGradientStop

Implements:IGradientStop

Constructors​

NameDescription
ImmutableGradientStopNo summary available.

ImmutableGradientStop Constructor​

public ImmutableGradientStop(double offset, Avalonia.Media.Color color)

Parameters​

offset double

color Avalonia.Media.Color

Properties​

NameDescription
ColorGets the gradient stop color.
OffsetGets the gradient stop offset.

Color Property​

Gets the gradient stop color.

public Avalonia.Media.Color Color { get; set; }

Offset Property​

Gets the gradient stop offset.

public double Offset { get; set; }