MeterThreshold
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Associates an inclusive absolute usage value with a semantic tone.
- C#
- VB.NET
public class MeterThreshold
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
MeterThreshold()
Initializes a threshold at zero with the primary tone.
MeterThreshold(from, tone)
Initializes a threshold with an absolute boundary and tone.
| Name | Type | Description |
|---|---|---|
| from | Double | Inclusive, nonnegative boundary in the same units as MeterBar.Value. |
| tone | MeterTone | Semantic tone to use at or above the boundary. |
Properties
From
Double: Gets or sets the inclusive absolute boundary. The default is 0. (Default: 0)
Throws:
- ArgumentOutOfRangeException The value is not finite or is negative.
Tone
MeterTone: Gets or sets the theme tone. The default is Primary. (Default: Primary)
Throws:
- InvalidEnumArgumentException The value is not a defined tone.