CultureAndRegionInfoBuilder::NumberFormat Property
Gets or sets a NumberFormatInfo object that defines the culturally appropriate format of displaying numbers, currency, and percentage.
Assembly: sysglobl (in sysglobl.dll)
public: property NumberFormatInfo^ NumberFormat { NumberFormatInfo^ get(); void set(NumberFormatInfo^ value); }
Property Value
Type: System.Globalization::NumberFormatInfo^A NumberFormatInfo object that defines the culturally appropriate format of displaying numbers, currency, and percentage.
| Exception | Condition |
|---|---|
| ArgumentNullException | The value in a set operation is null. |
| NotSupportedException | This operation is not valid for a neutral culture. |
| ArgumentOutOfRangeException | The specification for a number, currency, or percent property for this culture contains too many digits or is out of range. |
The NumberFormat property corresponds to the NumberFormat property.
Your application should call this property only for specific cultures.
The PercentDecimalSeparator, PercentGroupSeparator, PercentGroupSizes, and PercentDecimalDigits properties of NumberFormat are ignored. The saved form of a culture does not save explicit values for these properties. Instead, when the culture is loaded, they always default to NumberDecimalSeparator, NumberGroupSeparator, NumberGroupSizes, and NumberDecimalDigits, respectively.
Available since 2.0