Character.IsSpace(Char) 方法

定义

注意

deprecated

确定指定的字符是否为 ISO-LATIN-1 空格。

[Android.Runtime.Register("isSpace", "(C)Z", "")]
[System.Obsolete("deprecated")]
public static bool IsSpace(char ch);
[<Android.Runtime.Register("isSpace", "(C)Z", "")>]
[<System.Obsolete("deprecated")>]
static member IsSpace : char -> bool

参数

ch
Char

要测试的字符。

返回

true 如果字符为 ISO-LATIN-1 空格,则为 ; false 否则。

属性

注解

确定指定的字符是否为 ISO-LATIN-1 空格。 此方法仅返回true以下五个字符:<table class=“striped”><caption style=“display:none”>truechars</caption><thead><tr><th scope=“col”>Character <th scope=“col”Code th scope=“col”>Code <th scope=“col”>Name </thead><tbody tbody><tr><th scope=“row”>'\t'</th><td/td td>U+0009< td><>HORIZONTAL TABULATION</tr><>< tr th><scope=“row”>'\n'</th><td>U+000A</td><td/td>NEW LINE<></tr><><th scope=“row”>'\f'</th><td>U+000C</td td/td><>FORM FEED<></tr><tr><th scope=“row”>'\r'</th><td>U+000D</><td td/tr>CARRIAGE RETURN<th scope=“row”><></th><>td' '<><>U+0020</td><td/td>SPACE<></tr></tbody></table>

此成员已弃用。 替换为 isWhitespace(char)。

Java文档java.lang.Character.isSpace(char)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于