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

DigitalGaugeControl.TextHorizontalAlignment Property

Gets or sets the horizontal alignment of a text for the digital gauge control.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v18.2.dll

Declaration

public TextHorizontalAlignment TextHorizontalAlignment { get; set; }

Property Value

Type Description
TextHorizontalAlignment

A TextHorizontalAlignment enumeration value.

Available values:

Name Description
Left

A text fragment (e.g. “Hello!!!”) is positioned to the left side of the symbols panel.

DigitalGauge_TextHorizontalAlignment_Left

Before using horizontal alignment, you need to set the DigitalGaugeControl.SymbolCount property to the value that is less than the number of text symbols.

Center

A text fragment (e.g. “Hello!!!”) is positioned at the center of the symbols panel.

DigitalGauge_TextHorizontalAlignment_Center

Before using horizontal alignment, you need to set the DigitalGaugeControl.SymbolCount property to a value that is less than number of text symbols.

Right

A text fragment (e.g. “Hello!!!”) is positioned to the right side of the symbols panel.

DigitalGauge_TextHorizontalAlignment_Right

Before using horizontal alignment, you need to set the DigitalGaugeControl.SymbolCount property to a value that is less than the number of text symbols.

Remarks

Use the DigitalGaugeControl.TextVerticalAlignment property to set the vertical alignment of a text for the digital gauge control.

See Also