Upravit

Sdílet prostřednictvím


Rune.IsPunctuation(Rune) Method

Definition

Returns a value that indicates whether the specified rune is categorized as a punctuation mark.

public:
 static bool IsPunctuation(System::Text::Rune value);
public static bool IsPunctuation (System.Text.Rune value);
static member IsPunctuation : System.Text.Rune -> bool
Public Shared Function IsPunctuation (value As Rune) As Boolean

Parameters

value
Rune

The rune to evaluate.

Returns

true if value is a punctuation mark; otherwise, false.

Remarks

This method is equivalent to querying GetUnicodeCategory(Rune) and comparing the result against any of the values ConnectorPunctuation, DashPunctuation, OpenPunctuation, ClosePunctuation, InitialQuotePunctuation, FinalQuotePunctuation, and OtherPunctuation.

For more information, see Char.IsPunctuation.

Applies to