Indicates if formatted numbers contain digit grouping symbols.
[Visual Basic .NET] Public Property UseSeparator As Boolean
[C#] public bool UseSeparator {get; set;}
[C++]
HRESULT get_UseSeparator(
VARIANT_BOOL* sep
);
[C++]
HRESULT put_UseSeparator(
VARIANT_BOOL sep
);
[C++]Parameters
sep [out, retval] sep is a parameter of type VARIANT_BOOL sep [in] sep is a parameter of type VARIANT_BOOL
Product Availability
Description
The UseSeparator property sets or returns an indicator that tells whether to include a digit grouping symbol when the ValueToString method in the associated INumberFormat interface formats numbers.
The settings for UseSeparator are:
Setting | Description |
False |
(Default) Numbers are formatted without a digit grouping symbol, for example, 1234567.89. |
True |
Numbers are formatted with a digit grouping symbol, for example, 1,234,567.89. |
Remarks
Numbers are formatted using the current regional settings defined for the system at runtime. To change the separator symbol or where the separator appears in the formatted number, change the settings on the Number tab of Control Panel's Regional Settings applet.
See Also
INumericFormat Interface | ILatLonFormat2 Interface | RateFormat Class | IFractionFormat Interface | ICustomNumberFormat Interface | IAngleFormat Interface | ScientificFormat Class | INumberFormat Interface | AngleFormat Class | LatLonFormat Class | INumericFormat Interface | PercentageFormat Class | CustomNumberFormat Class | IRateFormat Interface | IPercentageFormat Interface | NumericFormat Class | CurrencyFormat Class | ILatLonFormat Interface | IScientificNumberFormat Interface | FractionFormat Class