Skip to main content

TcxFormatController.CurrencyFormat Property

Defines the format to represent currency values.

Declaration

property CurrencyFormat: string read; write;

Property Value

Type
string

Remarks

Use this property to specify the format for editors that work with currency values (for instance, TcxCustomCurrencyEdit descendants). The currency format is constructed based on the CurrencyString, CurrencyFormat, and CurrencyDecimals fields exposed by the global FormatSettings variable defined in the SysUtils unit. In RAD Studio 2010, these fields correspond to global variables defined in this unit. Format specifiers are listed in the TcxCustomTextEditProperties.DisplayFormat topic.

For the English (United States) locale, the default value of the CurrencyFormat property is ‘$,0.00;($,0.00)’. When this property is changed (either by the TcxFormatController class to reflect system locale changes or by changing the property directly), all subscribed controls receive a “format changed” notification.

Note

To improve performance when modifying several TcxFormatController properties simultaneously, enclose the code that performs these modifications within the BeginUpdate/EndUpdate method blocks.

See Also