Skip to main content
A newer version of this page is available. .

StateIndicator.StateIndex Property

Gets or sets the index of the current state in the collection of states.

Namespace: DevExpress.XtraGauges.Core.Model

Assembly: DevExpress.XtraGauges.v19.2.Core.dll

Declaration

[DefaultValue(-1)]
[Bindable(true)]
public int StateIndex { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value that specifies the index of the current state in the collection of states.

Remarks

The StateIndex property allows you to select a specific state by its index in the StateIndicator.States collection.

When state indicators are used within circular or linear gauges, the StateIndex property is ignored. In these gauges, a state is selected depending upon a scale’s current value (ArcScale.Value or LinearScale.Value). For state indicators being used in circular and linear gauges, you need to specify the range of values that correspond to specific states. If the value of the gauge’s scale falls into a specific range, a corresponding state is automatically activated.

See Also