Back to Devexpress

StateImageIndicatorComponent.StateIndex Property

windowsforms-devexpress-dot-xtragauges-dot-win-dot-base-dot-stateimageindicatorcomponent.md

latest2.7 KB
Original Source

StateImageIndicatorComponent.StateIndex Property

Gets or sets the index of a state image that is currently displayed within the StateImageIndicatorComponent.

Namespace : DevExpress.XtraGauges.Win.Base

Assembly : DevExpress.XtraGauges.v25.2.Win.dll

NuGet Package : DevExpress.Win.Gauges

Declaration

csharp
[ImageList("StateImages")]
[XtraSerializableProperty]
public int? StateIndex { get; set; }
vb
<XtraSerializableProperty>
<ImageList("StateImages")>
Public Property StateIndex As Integer?

Property Value

TypeDescription
Nullable<Int32>

An Int32 value that is the currently displayed image’s index.

|

Remarks

The StateIndex property allows you to manually select an image from the StateImageIndicatorComponent.StateImages collection that should be currently displayed by this StateImageIndicatorComponent. Alternatively, you can set value intervals for the related scale (see the StateImageIndicatorComponent.IndicatorScale property), entering which will automatically change the image displayed by the indicator.

See the State and State Image Indicators topic to learn more.

See Also

StateImages

IndicatorScale

State and State Image Indicators

StateImageIndicatorComponent Class

StateImageIndicatorComponent Members

DevExpress.XtraGauges.Win.Base Namespace