TextUtils.GetTrimmedLength Method

Definition

Overloads

GetTrimmedLength(ICharSequence)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

GetTrimmedLength(String)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

GetTrimmedLength(ICharSequence)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

[Android.Runtime.Register("getTrimmedLength", "(Ljava/lang/CharSequence;)I", "")]
public static int GetTrimmedLength (Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("getTrimmedLength", "(Ljava/lang/CharSequence;)I", "")>]
static member GetTrimmedLength : Java.Lang.ICharSequence -> int

Parameters

Returns

Attributes

Remarks

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

Java documentation for android.text.TextUtils.getTrimmedLength(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

GetTrimmedLength(String)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

public static int GetTrimmedLength (string? s);
static member GetTrimmedLength : string -> int

Parameters

s
String

Returns

Remarks

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

Java documentation for android.text.TextUtils.getTrimmedLength(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