Skip to main content
A newer version of this page is available. .

DigitalGauge.DigitCount Property

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

Namespace: DevExpress.XtraGauges.Win.Gauges.Digital

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

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty]
[DXCategory("Appearance")]
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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DigitCount 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.

See Also