ArcScale.Value Property

Gets or sets the scale’s current value.

Namespace: DevExpress.XtraGauges.Core.Model

Assembly: DevExpress.XtraGauges.v21.1.Core.dll


public float Value { get; set; }

Property Value

Type Default Description


The scale’s current value.


A scale’s minimum and maximum values are specified by the ArcScale.MinValue and ArcScale.MaxValue properties, respectively. Typically, you set the scale’s Value in this range. However, you can set the value beyond this range, and then correct the range to have it include the specified Value.

When you assign a value to the Value property, the value is stored in an internal variable (let’s call it internalValue). Reading the Value property returns the following values:

  • internalValue, if it falls in the range [MinValue; MaxValue];
  • MinValue, if internalValue is less than MinValue;
  • MaxValue, if internalValue is greater than MaxValue;

Only the value returned by the Value property is persisted. This means that the internalValue is not persisted, if it falls outside the range [MinValue; MaxValue].

To get the internalValue, use the ArcScale.GetInternalValue method.

A needle (ArcScaleNeedle) linked to a scale automatically points to the scale’s current value. The current value is also indicated by a marker (ArcScaleMarker) and range bar (ArcScaleRangeBar) objects, linked to this scale.

Needle, marker and range bar objects can be linked to a scale via their ArcScale properties.

When the Value property changes, the ArcScale.ValueChanged event fires.

See Also