NumberFormatInfo.PercentSymbol 屬性

定義

取得或設定要當做百分比符號的字串。

public:
 property System::String ^ PercentSymbol { System::String ^ get(); void set(System::String ^ value); };
public string PercentSymbol { get; set; }
member this.PercentSymbol : string with get, set
Public Property PercentSymbol As String

屬性值

要當做百分比符號的字串。 InvariantInfo 的預設值為 "%"。

例外狀況

正在將屬性設定為 null

正在設定屬性,而且 NumberFormatInfo 物件為唯讀。

備註

當數值格式化為 「P」 或包含 「%」 的格式字串時,指派給 PercentSymbol 屬性的字串會包含在結果字串中。

適用於

另請參閱