Language

SpannableStringBuilder.SubSequence(Int32, Int32) Method

Definition

Return a new CharSequence containing a copy of the specified range of this buffer, including the overlapping spans.

public string? SubSequence(int start, int end);
member this.SubSequence : int * int -> string

Parameters

start
Int32

The first character index to include.

end
Int32

The character index at which the range stops, excluding that character.

Returns

The selected characters as a plain string without span objects.

Remarks

Return a new CharSequence containing a copy of the specified range of this buffer, including the overlapping spans.

Java documentation for android.text.SpannableStringBuilder.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