SpannableStringBuilder.GetSpans(Int32, Int32, Class) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The start character offset of the span query.
- queryEnd
- Int32
The end character offset of the span query.
- kind
- Class
The Java class used to select matching span objects.
Returns
The matching span objects, or an empty array when there are no matches or kind is null.
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.