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

DigitalGauge.DigitCount Property

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

Namespace: DevExpress.XtraGauges.Win.Gauges.Digital

Assembly: DevExpress.XtraGauges.v24.2.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