Szerkesztés

Megosztás a következőn keresztül:


CultureAndRegionInfoBuilder.NumberFormat Property

Definition

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.

Applies to