Freigeben über


String.SubSequenceFormatted(Int32, Int32) Method

Definition

Returns a character sequence that is a subsequence of this sequence.

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

Parameters

beginIndex
Int32

the begin index, inclusive.

endIndex
Int32

the end index, exclusive.

Returns

the specified subsequence.

Implements

Attributes

Exceptions

if start , end , start > end or end > length().

Remarks

Returns a character sequence that is a subsequence of this sequence.

An invocation of this method of the form

<blockquote>

str.subSequence(begin,&nbsp;end)

</blockquote>

behaves in exactly the same way as the invocation

<blockquote>

str.substring(begin,&nbsp;end)

</blockquote>

Added in 1.4.

Java documentation for java.lang.String.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

See also

  • <xref:Java.Lang.ICharSequence.SubSequenceFormatted(System.Int32%2c+System.Int32)>