Skip to main content
Version: 4.2

RadialGauge

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Displays a read-only circular capacity gauge with absolute tone thresholds.

public class RadialGauge : Control

Values outside the range remain available as text; only the painted fill is clamped. Thresholds use the same nonnegative absolute boundaries as MeterBar, even when Minimum is negative.

Example:

var gauge = new RadialGauge { Value = 81, Shape = RadialGaugeShape.Arc, Label = "MEMORY" };
gauge.Thresholds.Add(new MeterThreshold(75, MeterTone.Warning));
gauge.Thresholds.Add(new MeterThreshold(90, MeterTone.Danger));
this.Controls.Add(gauge);

Constructors​

Instance member RadialGauge()​

Initializes a nonfocusable gauge with a range of zero to one hundred.

Properties​

Instance member Animated​

Boolean: Gets or sets whether value updates animate, respecting reduced-motion preferences. (Default: False)

Instance member CurrentTone​

MeterTone: Gets the effective tone after applying thresholds.

Protected member DefaultSize​

Size: Gets the default size of 140 by 140 pixels.

Instance member Focusable​

Boolean: Gets or sets focus availability. The default is false. (Default: False)

Instance member Label​

String: Gets or sets the plain-text label beneath the value. (Default: "")

Instance member Maximum​

Double: Gets or sets the finite upper bound, strictly greater than Minimum. (Default: 100)

Instance member Minimum​

Double: Gets or sets the finite lower bound, strictly less than Maximum. (Default: 0)

Instance member Shape​

RadialGaugeShape: Gets or sets the ring or arc layout. Uncustomized angles follow the shape. (Default: Ring)

Instance member ShowValue​

Boolean: Gets or sets whether the formatted center value is visible. (Default: True)

Instance member StartAngle​

Int32: Gets or sets the angle. Clockwise degrees from three o’clock; defaults to -90 for Ring and 180 for Arc.

An explicitly assigned angle is retained when Shape changes. Reset in the designer to restore automatic defaults. Angles remain clockwise in right-to-left layouts.

Instance member SweepAngle​

Int32: Gets or sets the angle. Clockwise sweep from 1 through 360 degrees; defaults to 360 for Ring and 180 for Arc.

An explicitly assigned angle is retained when Shape changes. Reset in the designer to restore automatic defaults. Angles remain clockwise in right-to-left layouts.

Instance member TabStop​

Boolean: Gets or sets tab participation. The default is false. (Default: False)

Instance member Thickness​

Int32: Gets or sets stroke thickness in pixels; the renderer caps it to fit small gauges. (Default: 8)

Instance member Thresholds​

MeterThresholdCollection: Gets the observed collection of absolute tone boundaries shared with MeterBar.

The highest matching boundary wins; the last item wins equal boundaries. Editing items refreshes the gauge. Boundaries are inclusive on upward crossings and exclusive on downward crossings.

Instance member Tone​

MeterTone: Gets or sets the tone used when no threshold matches. (Default: Primary)

Instance member Value​

Double: Gets or sets the finite absolute value. The default is zero. (Default: 0)

Threshold crossings are snapshotted before callbacks. Assigning the same value raises no events. Changes to range limits or thresholds do not raise ThresholdCrossed.

Instance member ValueFormat​

String: Gets or sets a composite format using Value, Minimum, Maximum, and the range fraction. (Default: "{3:P0}")

Uses CurrentCulture. Arguments are {0}=Value, {1}=Minimum, {2}=Maximum, {3}=fraction of the range. The default "{3:P0}" displays a percentage. The fraction is clamped to zero through one.

Example:

gauge.ValueFormat = "{0:N1} GB";

Instance member ValueText​

String: Gets the server-formatted value using the current culture.

Methods​

Protected member Dispose(disposing)​

Detaches threshold notifications before releasing resources.

ParameterTypeDescription
disposingBooleanWhether managed resources should be released.

Protected member OnThresholdCrossed(e)​

Raises ThresholdCrossed.

ParameterTypeDescription
eMeterThresholdEventArgsEvent data captured for this change.

Protected member OnValueChanged(e)​

Raises ValueChanged.

ParameterTypeDescription
eEventArgsEvent data captured for this change.

Protected member OnWebRender(config)​

Sends an atomic range snapshot and appearance settings to the client widget.

ParameterTypeDescription
configObjectWisej client configuration.

Events​

Instance member ThresholdCrossed​

EventHandler<MeterThresholdEventArgs> Occurs after ValueChanged for each crossed boundary, in traversal order.

Instance member ValueChanged​

EventHandler Occurs after Value changes.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.