This documentation is archived and is not being maintained.

CultureAndRegionInfoBuilder::NumberFormat Property

Gets or sets a NumberFormatInfo object that defines the culturally appropriate format of displaying numbers, currency, and percentage.

Namespace:  System.Globalization
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.

ExceptionCondition
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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Show: