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.v24.1.Core.dll
NuGet Package: DevExpress.Gauges.Core
Declaration
Property Value
Type | Description |
---|---|
Int32 | 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.