Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Gauges

#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