Rune.IsLetter(Rune) Method

Definition

返回一个值,该值指示指定的 rune 是否属于字母类别。Returns a value that indicates whether the specified rune is categorized as a letter.

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

Parameters

value
Rune

要计算的 rune。The rune to evaluate.

Returns

Boolean

如果 true 是一个字母,则为 value;否则为 falsetrue if value is a letter; otherwise, false.

Remarks

此方法等效于查询 GetUnicodeCategory(Rune),并将结果与 UppercaseLetterLowercaseLetterTitlecaseLetterModifierLetterOtherLetter的任何值进行比较。This method is equivalent to querying GetUnicodeCategory(Rune) and comparing the result against any of the values UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, and OtherLetter.

有关详细信息,请参阅 Char.IsLetterFor more information, see Char.IsLetter.

Applies to