Skip to main content

DigitalGauge.DigitCount Property

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

Namespace: DevExpress.XtraGauges.Win.Gauges.Digital

Assembly: DevExpress.XtraGauges.v24.1.Win.dll

NuGet Package: DevExpress.Win.Gauges

Declaration

[DefaultValue(-1)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public int DigitCount { get; set; }

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