Språk

AlteredCharSequence.SubSequenceFormatted(Int32, Int32) Method

Definition

Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.

[Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "GetSubSequence_IIHandler")]
public virtual Java.Lang.ICharSequence? SubSequenceFormatted(int start, int end);
[<Android.Runtime.Register("subSequence", "(II)Ljava/lang/CharSequence;", "GetSubSequence_IIHandler")>]
abstract member SubSequenceFormatted : int * int -> Java.Lang.ICharSequence
override this.SubSequenceFormatted : int * int -> Java.Lang.ICharSequence

Parameters

start
Int32

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
Int32

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

Returns

the specified subsequence

Implements

Attributes

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.

Android reference for android.text.AlteredCharSequence.subSequence.

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