DigitalGauge.DigitCount Property

Gets or sets the number of characters displayed by the gauge.

Namespace: DevExpress.XtraGauges.Win.Gauges.Digital

Assembly: DevExpress.XtraGauges.v20.2.Win.dll

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty]
[DXCategory("Appearance")]
public int DigitCount { get; set; }
<DefaultValue(-1)>
<XtraSerializableProperty>
<DXCategory("Appearance")>
Public Property DigitCount As Integer

Property Value

Type Default Description
Int32

-1

An integer value that specifes the number of characters displayed by the gauge.

Remarks

The text displayed by the gauge is specified by the DigitalGauge.Text property.

If the DigitalGauge.DigitCount property is set to 0 or a negative value, the gauge displays the entire text. Otherwise, the number of characters is limited by the DigitCount property. If the length of the string specified by the DigitalGauge.Text property is greater than DigitCount, the last characters of the text will be displayed.

See Also