Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NumberFormat Property

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.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft