CultureAndRegionInfoBuilder.NumberFormat 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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 屬性。
您的應用程式應該只針對特定文化特性呼叫此屬性。
的PercentDecimalSeparator、 PercentGroupSeparatorPercentGroupSizes、 和 PercentDecimalDigits 屬性NumberFormat會被忽略。 文化特性的儲存形式不會儲存這些屬性的明確值。 相反地,當載入文化特性時,它們一律會分別預設為 NumberDecimalSeparator、NumberGroupSeparatorNumberGroupSizes、 和 NumberDecimalDigits。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應