TFlxNumberFormat.PercentCount Method
Returns the number of % sign in a cell. Each % in the format string multiplies the value by 100, so 0.1 formatted as "0%" will display as 10% and formatted as 0%% will display as 1000%%.
Syntax
Namespace: FlexCel.Core
public static Int32 PercentCount(Object Value, String Format)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
Value | Object | Value we are formatting. Normally this shouldn't affect the number of percents in the format string, but if the format string is different for positive and negative numbers or zero values, then the value might affect the result. | |
Format | String | Cell format. |