TypeNumberDecPlaces Property
Applies To
fpSpread control
Description
Sets or returns the number of digits allowed to the right of the decimal character in a number cell. This property is available at run time only.
Syntax
short CSpreadSheet::GetTypeNumberDecPlaces( );
void CSpreadSheet::SetTypeNumberDecPlaces(short value);
[form.]fpSpread.TypeNumberDecPlaces[ = value%]
Remarks
The default value for the TypeNumberDecPlaces property is two decimal places. The maximum total number of numerals in the cell is 14.
To use the TypeNumberDecPlaces 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 TypeNumberDecPlaces property for a cell or cells, any subsequent number cells you create will use the same TypeNumberDecPlaces setting unless you reset it for those cells.
The TypeNumberDecPlaces property does not have an effect unless the CellType property is set to 13 (Number) for the specified cell or cells.
You can specify a different decimal character to display by setting the TypeNumberDecimal property.
Spread Designer
Choose the Cell menu, the Cell Type menu, the Number menu, and then the Settings tab, and then type a number in the Decimal Places edit box in the Cell Type Settings dialog box.
Data Type
Integer
See Also
Creating and Customizing a Number Cell
CellType, Sheet, TypeNumberDecimal, TypeNumberLeadingZero, TypeNumberMax, TypeNumberMin, TypeNumberNegStyle, TypeNumberSeparator, TypeNumberShowSep properties
DLL Correspondence
SSSetTypeNumber function