String.Trim Method

Definition

Returns a string whose value is this string, with any leading and trailing whitespace removed.

[Android.Runtime.Register("trim", "()Ljava/lang/String;", "")]
public string Trim ();
[<Android.Runtime.Register("trim", "()Ljava/lang/String;", "")>]
member this.Trim : unit -> string

Returns

String

A string whose value is this string, with any leading and trailing white space removed, or this string if it has no leading or trailing white space.

Attributes

Remarks

Java documentation for java.lang.String.trim().

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