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 属性的字符串将包含在结果字符串中。

适用于

另请参阅