Skip to main content

GaugeBand struct

Namespace: Arlecchino.Widgets.Readouts · Assembly: Arlecchino

Where a band of a Gauge starts and how it is drawn. A band runs from GaugeBand.From up to the start of the next one, so bands are given in ascending order.

public readonly struct GaugeBand : IEquatable<GaugeBand>

Implements IEquatable<T><GaugeBand>

Constructors

MemberSummary
GaugeBand(decimal, IArlecchinoColor)Where a band of a Gauge starts and how it is drawn. A band runs from GaugeBand.From up to the start of the next one, so bands are given in ascending order.

Properties

MemberSummary
FromThe value the band starts at.
StyleHow the part of the track inside the band is drawn.

Methods

MemberSummary
Deconstruct(out decimal, out IArlecchinoColor)

Constructors in detail

GaugeBand(decimal, IArlecchinoColor)

public GaugeBand(decimal From, IArlecchinoColor Style);

Where a band of a Gauge starts and how it is drawn. A band runs from GaugeBand.From up to the start of the next one, so bands are given in ascending order.

Parameters

NameTypeDescription
FromdecimalThe value the band starts at.
StyleIArlecchinoColorHow the part of the track inside the band is drawn.

Properties in detail

From

public decimal From { get; init; }

The value the band starts at.

Type decimal

Style

public IArlecchinoColor Style { get; init; }

How the part of the track inside the band is drawn.

Type IArlecchinoColor

Methods in detail

Deconstruct(out decimal, out IArlecchinoColor)

public void Deconstruct(out decimal From, out IArlecchinoColor Style);

Parameters

NameTypeDescription
Fromdecimal
StyleIArlecchinoColor