Android Guides | Samples

Java.Lang.String.SubSequenceFormatted Method

Equivalent to String.Substring(Int32,Int32) but needed to implement CharSequence.

Syntax

[Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "")]
public ICharSequence SubSequenceFormatted (Int32 start, Int32 end)

See Also

Parameters

start
the start offset of the sub-sequence. It is inclusive, that is, the index of the first character that is included in the sub-sequence.
end
the end offset of the sub-sequence. It is exclusive, that is, the index of the first character after those that are included in the sub-sequence

Exceptions

TypeReason
IndexOutOfBoundsExceptionif start , end , start > end or end > length().

Remarks

Equivalent to String.Substring(Int32,Int32) but needed to implement CharSequence.

[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