Spread 8.0 Documentation
TypeCurrencySymbol Property
Support Options
ActiveX Reference > ActiveX Properties > TypeCurrencySymbol Property

Glossary Item Box

TypeCurrencySymbol Property


See Also    DLL    Example 1    Example 2

Applies To

fpSpread control

Description

Sets or returns the currency symbol displayed in currency cells. This property is available at run time only.

Syntax

C++

CString CSpreadSheet::GetTypeCurrencySymbol( );
void CSpreadSheet::SetTypeCurrencySymbol(LPCTSTR value);

Visual Basic

[form.]fpSpread.TypeCurrencySymbol[ = text$]

Remarks

The default value for the TypeCurrencySymbol character is a Null value, which means to display the currency symbol specified in the regional Currency Symbol setting in the Windows Control Panel.

Note: The control does not recognize changes made to the Windows regional settings or options until you restart your development environment or your application (or perform any operation that unloads and reloads the current control files). For more information about regional settings or options and Windows operating environments, see Variations in Windows Regional Settings or Options.

You can designate more than one character as the symbol.

A currency cell will not display the specified symbol unless the TypeCurrencyShowSymbol property is set to True for that cell.

To use the TypeCurrencySymbol property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties. Once you set the TypeCurrencySymbol property for a cell or cells, any subsequent currency cells you create will use the same TypeCurrencySymbol setting unless you reset it for those cells.

The TypeCurrencySymbol property does not have an effect unless the CellType property is set to 12 (Currency) for the specified cell or cells and the TypeCurrencyShowSymbol property is set to True.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Currency menu, and then the Settings tab, and then type a symbol in the Symbol edit box next to Show Currency in the Cell Type Settings dialog box.

Data Type

String

See Also

Variations in Windows Regional Settings or Options
Formatting a Currency Cell

CellType, Sheet, TypeCurrencyDecimal, TypeCurrencyDecPlaces, TypeCurrencyLeadingZero, TypeCurrencyMax, TypeCurrencyMin, TypeCurrencyNegStyle, TypeCurrencyPosStyle, TypeCurrencySeparator, TypeCurrencyShowSep, TypeCurrencyShowSymbol properties

DLL Correspondence

SSSetTypeCurrencyEx function

Copyright © GrapeCity, inc. All rights reserved.