Partager via


ICharSequence.SubSequenceFormatted(Int32, Int32) Method

Definition

Returns a CharSequence that is a subsequence of this sequence.

[Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "GetSubSequence_IIHandler:Java.Lang.ICharSequenceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.ICharSequence SubSequenceFormatted (int start, int end);
[<Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "GetSubSequence_IIHandler:Java.Lang.ICharSequenceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SubSequenceFormatted : int * int -> Java.Lang.ICharSequence

Parameters

start
Int32

the start index, inclusive

end
Int32

the end index, exclusive

Returns

the specified subsequence

Attributes

Exceptions

if start , end , start > end, or if start or end are greater than the length of this sequence.

Remarks

Returns a CharSequence that is a subsequence of this sequence. The subsequence starts with the char value at the specified index and ends with the char value at index end - 1. The length (in chars) of the returned sequence is end - start, so if start == end then an empty sequence is returned.

Java documentation for java.lang.CharSequence.subSequence(int, int).

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