CultureAndRegionInfoBuilder.NumberFormat Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a NumberFormatInfo object that defines the culturally appropriate format of displaying numbers, currency, and percentage.
public:
property System::Globalization::NumberFormatInfo ^ NumberFormat { System::Globalization::NumberFormatInfo ^ get(); void set(System::Globalization::NumberFormatInfo ^ value); };
public System.Globalization.NumberFormatInfo NumberFormat { get; set; }
member this.NumberFormat : System.Globalization.NumberFormatInfo with get, set
Public Property NumberFormat As NumberFormatInfo
Property Value
A NumberFormatInfo object that defines the culturally appropriate format of displaying numbers, currency, and percentage.
Exceptions
The value in a set operation is null
.
This operation is not valid for a neutral culture.
The specification for a number, currency, or percent property for this culture contains too many digits or is out of range.
Remarks
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.