Skip to main content
Version: 4.2

MeterSegment

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

A named portion of MeterBar.Value, measured in the same units as the meter.

public class MeterSegment

Segments are stacked in collection order and clipped to the meter's visible total.

Example:

var meter = new MeterBar { Maximum = 100, Value = 80 };
meter.Segments.Add(new MeterSegment("Applications", 50, MeterTone.Primary));
meter.Segments.Add(new MeterSegment("Cache", 30, MeterTone.Success));

Constructors​

Instance member MeterSegment()​

Initializes an empty segment with the primary tone.

Instance member MeterSegment(label, value, tone)​

Initializes a named segment.

NameTypeDescription
labelStringHuman-readable name, also used in the segment tooltip.
valueDoubleNonnegative amount in the meter's units.
toneMeterToneSemantic theme tone.

Properties​

Instance member Label​

String: Gets or sets the segment name. The default is an empty string. (Default: "")

Instance member Tone​

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

Throws:

Instance member Value​

Double: Gets or sets this portion of the total, in the meter's units. The default is 0. (Default: 0)

Throws: