Breyta

Deila með


NumberFormatInfo.PercentSymbol Property

Definition

Gets or sets the string to use as the percent symbol.

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

Property Value

The string to use as the percent symbol. The default for InvariantInfo is "%".

Exceptions

The property is being set to null.

The property is being set and the NumberFormatInfo object is read-only.

Remarks

The string assigned to the PercentSymbol property is included in the result string when a numeric value is formatted with the "P" or with a format string that includes the "%" .

Applies to

See also