Back to Devexpress

DigitalGaugeControl.Text Property

wpf-devexpress-dot-xpf-dot-gauges-dot-digitalgaugecontrol-01107b14.md

latest2.4 KB
Original Source

DigitalGaugeControl.Text Property

Gets or sets a text that is displayed on the symbols panel of the digital gauge control.

Namespace : DevExpress.Xpf.Gauges

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

NuGet Package : DevExpress.Wpf.Gauges

Declaration

csharp
public string Text { get; set; }
vb
Public Property Text As String

Property Value

TypeDescription
String

A String object that is the text displayed on the digital gauge control.

|

Example

The following example demonstrates how to use the DigitalGaugeControl.Text property.

xaml
<dxga:DigitalGaugeControl Name="digitalGaugeControl1" Text="Hello!">
      <dxga:DigitalGaugeControl.SymbolView>
            <dxga:MatrixView5x8 />
      </dxga:DigitalGaugeControl.SymbolView>
  </dxga:DigitalGaugeControl>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-gauges-set-width-and-height-of-symbols-in-digital-gauge-control/CS/MainWindow.xaml#L7

xml
<Grid>
    <dxga:DigitalGaugeControl Text="Hello!!!"
                              VerticalAlignment="Center">

See Also

DigitalGaugeControl Class

DigitalGaugeControl Members

DevExpress.Xpf.Gauges Namespace