Freigeben über


ISpanned.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;", "GetGetSpans_IILjava_lang_Class_Handler:Android.Text.ISpannedInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object[]? GetSpans (int start, int end, Java.Lang.Class? type);
[<Android.Runtime.Register("getSpans", "(IILjava/lang/Class;)[Ljava/lang/Object;", "GetGetSpans_IILjava_lang_Class_Handler:Android.Text.ISpannedInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member GetSpans : int * int * Java.Lang.Class -> Java.Lang.Object[]

Parameters

start
Int32
end
Int32
type
Class

Returns

Object[]
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.

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