DisplayFormat Property

Applies to TestComplete 15.40, last modified on March 25, 2022

Specifies the format for the component’s value.


Read-Write Property String
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxCalcEditProperties, TcxCurrencyEditProperties, TcxSpinEditProperties


Use the DisplayFormat property to get or set the format that the component’s value is displayed in when it is not being edited (that is, when the component does not have the input focus).

The display format only affects the way the value is displayed in the component. It does not affect the value itself.

Property Value

A string that specifies the format applied to the component’s value. For information on display format specifiers, see User Forms Components - Format Specifiers.

The default value of the TcxSpinEditProperties.DisplayFormat property is an empty string. The default values of TcxCurrencyEditProperties.DisplayFormat and TcxSpinEditProperties.DisplayFormat properties are based on the system’s currency and number settings.

See Also

User Forms Components - Format Specifiers
EditFormat Property

Highlight search results