Rune.IsPunctuation(Rune) 方法

定義

傳回值,指出指定的 rune 是否分類為標點符號。

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

參數

value
Rune

要評估的 rune。

傳回

Boolean

true 是標點符號時為 value,否則為 false

備註

這個方法相當於查詢 GetUnicodeCategory(Rune) 和比較結果與任何值 ConnectorPunctuationDashPunctuation 、、 OpenPunctuationClosePunctuationInitialQuotePunctuationFinalQuotePunctuationOtherPunctuation

如需詳細資訊,請參閱Char.IsPunctuation

適用於