Skip to main content
Version: 4.2

MeterThreshold

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Associates an inclusive absolute usage value with a semantic tone.

public class MeterThreshold

The matching threshold with the highest From wins. For equal boundaries, the last item wins.

Example:

var meter = new MeterBar { Maximum = 200 };
meter.Thresholds.Add(new MeterThreshold(150, MeterTone.Warning));
meter.Value = 160; // Warning begins at 150 units, not at 150 percent.

Constructors​

Instance member MeterThreshold()​

Initializes a threshold at zero with the primary tone.

Instance member MeterThreshold(from, tone)​

Initializes a threshold with an absolute boundary and tone.

NameTypeDescription
fromDoubleInclusive, nonnegative boundary in the same units as MeterBar.Value.
toneMeterToneSemantic tone to use at or above the boundary.

Properties​

Instance member From​

Double: Gets or sets the inclusive absolute boundary. The default is 0. (Default: 0)

Throws:

Instance member Tone​

MeterTone: Gets or sets the theme tone. The default is Primary. (Default: Primary)

Throws: