Language

TextUtils.IsDigitsOnly Method

Definition

Overloads

Name Description
IsDigitsOnly(ICharSequence)

Returns whether the given CharSequence contains only digits.

IsDigitsOnly(String)

Returns whether the given CharSequence contains only digits.

IsDigitsOnly(ICharSequence)

Returns whether the given CharSequence contains only digits.

[Android.Runtime.Register("isDigitsOnly", "(Ljava/lang/CharSequence;)Z", "")]
public static bool IsDigitsOnly(Java.Lang.ICharSequence? str);
[<Android.Runtime.Register("isDigitsOnly", "(Ljava/lang/CharSequence;)Z", "")>]
static member IsDigitsOnly : Java.Lang.ICharSequence -> bool

Parameters

str
ICharSequence

The text whose Unicode code points are checked.

Returns

true if every code point is a digit, including when the text is empty; otherwise, false.

Attributes

Remarks

Returns whether the given CharSequence contains only digits.

Java documentation for android.text.TextUtils.isDigitsOnly(java.lang.CharSequence).

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

IsDigitsOnly(String)

Returns whether the given CharSequence contains only digits.

public static bool IsDigitsOnly(string? str);
static member IsDigitsOnly : string -> bool

Parameters

str
String

The text whose Unicode code points are checked.

Returns

true if every code point is a digit, including when the text is empty; otherwise, false.

Remarks

Returns whether the given CharSequence contains only digits.

Java documentation for android.text.TextUtils.isDigitsOnly(java.lang.CharSequence).

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