TypePercentNegStyle Property
Applies To
fpSpread control
Description
Sets or returns the format for negative values in a percent cell. This property is available at run time only.
Syntax
long CSpreadSheet::GetTypePercentNegStyle( );
void CSpreadSheet::SetTypePercentNegStyle(long value);
[form.]fpSpread.TypePercentNegStyle[ = setting%]
Remarks
The following settings are available:
Setting | Description | Constants |
---|---|---|
0 - Intl | (Default) Uses the regional Number Format setting in the Windows Control Panel | TypePercentNegStyleIntl |
1 | (1.1%) | TypePercentNegStyle1 |
2 | –1.1% | TypePercentNegStyle2 |
3 | 1.1–% | TypePercentNegStyle3 |
4 | 1.1%– | TypePercentNegStyle4 |
5 | –1.1 % | TypePercentNegStyle5 |
6 | 1.1 %– | TypePercentNegStyle6 |
7 | 1.1– % | TypePercentNegStyle7 |
8 | (1.1 %) | TypePercentNegStyle8 |
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. |
To use the TypePercentNegStyle 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 TypePercentNegStyle property for a cell or cells, any subsequent percent cells you create will use the same TypePercentNegStyle setting unless you reset it for those cells.
The TypePercentNegStyle property does not have an effect unless the CellType property is set to 14 (Percent) for the specified cell or cells.
Spread Designer
Choose the Cell menu, the Cell Type menu, the Percent menu, and then the Settings tab, and then select an item in the Negative Style drop-down list box in the Cell Type Settings dialog box.
Data Type
Integer (Enumerated)
See Also
Variations in Windows Regional Settings or Options
Formatting a Percent Cell
CellType, Sheet, TypePercentDecimal, TypePercentDecPlaces, TypePercentLeadingZero, TypePercentMax, TypePercentMin properties
DLL Correspondence
SSSetTypePercentEx function