Android Guides | Samples

Java.Lang.String.Substring Method

Returns a string containing a suffix of this string starting at start.

Syntax

[Android.Runtime.Register("substring", "(I)Ljava/lang/String;", "")]
public String Substring (Int32 start)

Parameters

start
the offset of the first character.

Exceptions

TypeReason
IndexOutOfBoundsExceptionif start or start > length().

Remarks

Returns a string containing a suffix of this string starting at start. The returned string shares this string's .

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1