Rune.IsPunctuation(Rune) Method

Definition

返回一个值,该值指示指定的 rune 是否属于标点符号类别。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

要计算的 rune。The rune to evaluate.

Returns

Boolean

如果 true 是一个标点符号,则为 value;否则为 falsetrue if value is a punctuation mark; otherwise, false.

Remarks

此方法等效于查询 GetUnicodeCategory(Rune),并将结果与 ConnectorPunctuationDashPunctuationOpenPunctuationClosePunctuationInitialQuotePunctuationFinalQuotePunctuationOtherPunctuation的任何值进行比较。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.

有关详细信息,请参阅 Char.IsPunctuationFor more information, see Char.IsPunctuation.

Applies to