Share via


SpannableStringBuilder.GetSpans(Int32, Int32, Class) Method

Definition

Return an array of the spans of the specified type that overlap the specified range of the buffer.

[Android.Runtime.Register("getSpans", "(IILjava/lang/Class;)[Ljava/lang/Object;", "GetGetSpans_IILjava_lang_Class_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual Java.Lang.Object[]? GetSpans (int queryStart, int queryEnd, Java.Lang.Class? kind);
[<Android.Runtime.Register("getSpans", "(IILjava/lang/Class;)[Ljava/lang/Object;", "GetGetSpans_IILjava_lang_Class_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetSpans : int * int * Java.Lang.Class -> Java.Lang.Object[]
override this.GetSpans : int * int * Java.Lang.Class -> Java.Lang.Object[]

Parameters

queryStart
Int32
queryEnd
Int32
kind
Class

Returns

Object[]

Implements

Attributes

Remarks

Return an array of the spans of the specified type that overlap the specified range of the buffer. The kind may be Object.class to get a list of all the spans regardless of type.

Java documentation for android.text.SpannableStringBuilder.getSpans(int, int, java.lang.Class<T>).

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