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::NumberFormatInfoA NumberFormatInfo object that defines the culturally appropriate format of displaying numbers, currency, and percentage.
| Exception | Condition |
|---|---|
| ArgumentNullException | The value in a set operation is nullptr. |
| 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.