Back to Devexpress

DigitalGaugeControl.TextHorizontalAlignment Property

wpf-devexpress-dot-xpf-dot-gauges-dot-digitalgaugecontrol-5add551a.md

latest3.0 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public TextHorizontalAlignment TextHorizontalAlignment { get; set; }
vb
Public Property TextHorizontalAlignment As TextHorizontalAlignment

Property Value

TypeDescription
TextHorizontalAlignment

A TextHorizontalAlignment enumeration value.

|

Available values:

NameDescription
Left

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

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.

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.

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

DigitalGaugeControl Class

DigitalGaugeControl Members

DevExpress.Xpf.Gauges Namespace