Language

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

Definition

[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
start
Int32
end
Int32
flags
SpanTypes

Implements

Attributes

Remarks

Attach the specified markup object to the range start…end of the text, or move the object to that range if it was already attached elsewhere. See Spanned for an explanation of what the flags mean. The object can be one that has meaning only within your application, or it can be one that the text system will use to affect text display or behavior. Some noteworthy ones are the subclasses of CharacterStyle and ParagraphStyle, and TextWatcher and SpanWatcher.

Android reference for android.text.SpannableString.setSpan.

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