Character.IsSpace(Char) Method

Definition

Caution

deprecated

Determines if the specified character is ISO-LATIN-1 white space.

[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

Parameters

ch
Char

the character to be tested.

Returns

true if the character is ISO-LATIN-1 white space; false otherwise.

Attributes

Remarks

Determines if the specified character is ISO-LATIN-1 white space. This method returns true for the following five characters only: <table class="striped"> <caption style="display:none">truechars</caption> <thead> <tr><th scope="col">Character <th scope="col">Code <th scope="col">Name </thead> <tbody> <tr><th scope="row">'\t'</th> <td>U+0009</td> <td>HORIZONTAL TABULATION</td></tr> <tr><th scope="row">'\n'</th> <td>U+000A</td> <td>NEW LINE</td></tr> <tr><th scope="row">'\f'</th> <td>U+000C</td> <td>FORM FEED</td></tr> <tr><th scope="row">'\r'</th> <td>U+000D</td> <td>CARRIAGE RETURN</td></tr> <tr><th scope="row">' '</th> <td>U+0020</td> <td>SPACE</td></tr> </tbody> </table>

This member is deprecated. Replaced by isWhitespace(char).

Java documentation for java.lang.Character.isSpace(char).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to