Language

SpannableStringBuilder.SetSpan(Object, Int32, Int32, SpanTypes) Method

Definition

Mark the specified range of text with the specified object.

[Android.Runtime.Register("setSpan", "(Ljava/lang/Object;III)V", "GetSetSpan_Ljava_lang_Object_IIIHandler")]
public virtual void SetSpan(Java.Lang.Object? what, int start, int end, Android.Text.SpanTypes flags);
[<Android.Runtime.Register("setSpan", "(Ljava/lang/Object;III)V", "GetSetSpan_Ljava_lang_Object_IIIHandler")>]
abstract member SetSpan : Java.Lang.Object * int * int * Android.Text.SpanTypes -> unit
override this.SetSpan : Java.Lang.Object * int * int * Android.Text.SpanTypes -> unit

Parameters

what
Object

The span object to attach or move.

start
Int32

The start character offset of the span.

end
Int32

The exclusive end character offset of the span.

flags
SpanTypes

The flags to store with the span.

Implements

Attributes

Remarks

Mark the specified range of text with the specified object. The flags determine how the span will behave when text is inserted at the start or end of the span's range.

Java documentation for android.text.SpannableStringBuilder.setSpan(java.lang.Object, int, int, int).

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