CultureAndRegionInfoBuilder.NumberFormat 屬性

定義

取得或設定 NumberFormatInfo 物件,定義數字、貨幣和百分比在文化特性上適當的顯示格式。

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

屬性值

NumberFormatInfo 物件,定義數字、貨幣和百分比在文化特性上適當的顯示格式。

例外狀況

在設定作業中,此值為 null

這個作業對中性文化特性無效。

此文化特性的數字、貨幣、或百分比屬性規格包含太多數字或超出範圍。

備註

屬性 NumberFormat 會對應至 NumberFormat 屬性。

您的應用程式應該只針對特定文化特性呼叫此屬性。

PercentDecimalSeparatorPercentGroupSeparatorPercentGroupSizes、 和 PercentDecimalDigits 屬性NumberFormat會被忽略。 文化特性的儲存形式不會儲存這些屬性的明確值。 相反地,當載入文化特性時,它們一律會分別預設為 NumberDecimalSeparatorNumberGroupSeparatorNumberGroupSizes、 和 NumberDecimalDigits

適用於