Skip to main content

IMajorTickmark.FormatString Property

Gets or sets the format string used to format values of major tickmarks.

Namespace: DevExpress.XtraGauges.Core.Model

Assembly: DevExpress.XtraGauges.v22.1.Core.dll


string FormatString { get; set; }

Property Value

Type Description

A string used to format values of major tickmarks.


A format pattern can contain any custom text. To insert a formatted value at any position within this text, use the “{0}” or “{1}” placeholder. The “{0}” placeholder corresponds to a tickmark’s value, while the “{1}” placeholder corresponds to the matching percentage value.

The complete syntax to define the position of the value is as follows:




where the formatString parameter is a standard or custom format specifier. See the Numeric Format Strings topic in MSDN, to learn about these specifiers.

An example of a format string is “{0:F2}”. This string presents tickmark values in the form “…ddd.dd” where each ‘d’ indicates a digit (0-9). The string starts with a minus sign if the number is negative.

See Also