Rune.IsWhiteSpace(Rune) Method

Definition

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

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

Parameters

value
Rune

要计算的 rune。The rune to evaluate.

Returns

Boolean

如果 value 是一个空格字符,则为 true;否则为 falsetrue if value is a white space character; otherwise, false.

Remarks

此方法通常等效于查询 GetUnicodeCategory(Rune),并将结果与 SpaceSeparatorLineSeparatorParagraphSeparator的任何值进行比较。This method is generally equivalent to querying GetUnicodeCategory(Rune) and comparing the result against any of the values SpaceSeparator, LineSeparator, and ParagraphSeparator. 但是,Control 类别中有一些 Rune,它们也归类为空白字符,此方法用于对这些值进行帐户。However, there are some Runes in the Control category which are also classified as white space characters, and this method accounts for those values.

有关详细信息,请参阅 Char.IsWhiteSpaceFor more information, see Char.IsWhiteSpace.

Applies to