Struct GradientStop
One color stop within a GradientBrush.
public readonly record struct GradientStop : IEquatable<GradientStop>
- Implements
- Inherited Members
- Extension Methods
Constructors
GradientStop(float, Color)
One color stop within a GradientBrush.
public GradientStop(float Offset, Color Color)
Parameters
Properties
Color
The color at this stop.
public Color Color { get; init; }
Property Value
Offset
Position along the gradient, from 0 to 1.
public float Offset { get; init; }