Språk

SpannedString.NextSpanTransition(Int32, Int32, Class) Method

Definition

Return the first offset greater than start where a markup object of class type begins or ends, or limit if there are no starts or ends greater than start but less than limit.

[Android.Runtime.Register("nextSpanTransition", "(IILjava/lang/Class;)I", "")]
public override int NextSpanTransition(int start, int limit, Java.Lang.Class? kind);
[<Android.Runtime.Register("nextSpanTransition", "(IILjava/lang/Class;)I", "")>]
override this.NextSpanTransition : int * int * Java.Lang.Class -> int

Parameters

start
Int32

The offset after which to look for a span boundary.

limit
Int32

The upper search bound, returned when no earlier boundary is found.

kind
Class

The span class to consider, or null to consider all span classes.

Returns

The first matching boundary greater than start and less than limit, or limit if none exists.

Implements

Attributes

Remarks

Return the first offset greater than start where a markup object of class type begins or ends, or limit if there are no starts or ends greater than start but less than limit. Specify null or Object.class for the type if you want every transition regardless of type.

Android reference for android.text.SpannedString.nextSpanTransition.

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