Język

SpannedString.GetSpans(Int32, Int32, Class) Method

Definition

Return an array of the markup objects attached to the specified slice of this CharSequence and whose type is the specified type or a subclass of it.

[Android.Runtime.Register("getSpans", "(IILjava/lang/Class;)[Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public override Java.Lang.Object[]? GetSpans(int queryStart, int queryEnd, Java.Lang.Class? kind);
[<Android.Runtime.Register("getSpans", "(IILjava/lang/Class;)[Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
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 markup objects attached to the specified slice of this CharSequence and whose type is the specified type or a subclass of it. Specify Object.class for the type if you want all the objects regardless of type.

Android reference for android.text.SpannedString.getSpans.

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