Sdílet prostřednictvím


TextUtils.IsDigitsOnly Method

Definition

Overloads

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

Returns

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

Returns

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