Export (0) Print
Expand All

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 NumberFormatInfo NumberFormat { get; set; }

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft