Back to Devexpress

State Indicator

aspnet-11331-components-gauges-visual-elements-state-indicator.md

latest3.7 KB
Original Source

State Indicator

  • Jul 27, 2021

Indicator

An Indicator is a visual element that shows the current fixed state of a State Indicator control. You can use the StateIndicator.StateIndex property to specify this state.

When the current state index is changed, a State Indicator automatically displays another image that corresponds to the current state.

The appearance of a State Indicator depends on the current image, enumerated by the StateIndicatorShapeType type. You can access this type from the StateIndicator.States collection.

The following images show different state indicator shape types:

Traffic LightsLamp
ArrowCurrency USD
Flag USASmile

The table below lists the main properties that affect element behavior and appearance.

CharacteristicsMembers
DataStateIndicator.StateIndex,StateIndicator.State,StateIndicator.States
AppearanceBaseLeafPrimitive.Shader
SizeStateIndicator.Center,StateIndicator.Size
LayoutBaseLeafPrimitive.ZOrder

Custom Label

A Custom Label displays custom text that you can place at any location on a state indicator.

Custom labels are instances of the Label class that are stored in the BaseGaugeWin.Labels collection.

The table below lists the main properties that affect element behavior and appearance.

CharacteristicsMembers
DataLabel.Name,Label.Text,Label.FormatString,Label.AllowHTMLString
LayoutLabel.Position,Label.Size,Label.TextOrientation,Label.TextShape,BaseLeafPrimitive.ZOrder
AppearanceLabel.AppearanceText,Label.AppearanceBackground,BaseLeafPrimitive.Shader