NumberFormatInfo.PercentSymbol Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om