SceneGradientStop Struct

A color stop of a gradient.

public readonly struct SceneGradientStop : IEquatable<SceneGradientStop>
Implements

Constructors

NameDescription
SceneGradientStop(double, SceneColor)A color stop of a gradient.

SceneGradientStop(double, SceneColor)

A color stop of a gradient.

public SceneGradientStop(double Offset, SceneColor Color)

Parameters

Offset double
The position of the stop along the gradient, from 0 to 1.
Color SceneColor
The color at the stop.

Properties

NameDescription
ColorThe color at the stop.
OffsetThe position of the stop along the gradient, from 0 to 1.

The color at the stop.

public SceneColor Color { get; init; }

Property value

SceneColor

The position of the stop along the gradient, from 0 to 1.

public double Offset { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, SceneColor)
Equals(SceneGradientStop)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, SceneColor)

public void Deconstruct(out double Offset, out SceneColor Color)

Parameters

Offset double
Color SceneColor

No documentation is available.

Equals overloads

Equals(SceneGradientStop)

public bool Equals(SceneGradientStop other)
Parameters
other SceneGradientStop
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(SceneGradientStop, SceneGradientStop)
operator !=(SceneGradientStop, SceneGradientStop)

operator ==(SceneGradientStop, SceneGradientStop)

public static bool operator ==(SceneGradientStop left, SceneGradientStop right)

Parameters

left SceneGradientStop
right SceneGradientStop

Returns

bool

No documentation is available.

operator !=(SceneGradientStop, SceneGradientStop)

public static bool operator !=(SceneGradientStop left, SceneGradientStop right)

Parameters

left SceneGradientStop
right SceneGradientStop

Returns

bool

No documentation is available.