ViewStructure.SetText Method

Definition

Overloads

SetText(ICharSequence, Int32, Int32)

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

SetText(String, Int32, Int32)

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

SetText(ICharSequence, Int32, Int32)

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;II)V", "GetSetText_Ljava_lang_CharSequence_IIHandler", ApiSince=23)]
public abstract void SetText (Java.Lang.ICharSequence? text, int selectionStart, int selectionEnd);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;II)V", "GetSetText_Ljava_lang_CharSequence_IIHandler", ApiSince=23)>]
abstract member SetText : Java.Lang.ICharSequence * int * int -> unit

Parameters

selectionStart
Int32
selectionEnd
Int32
Attributes

Remarks

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

Java documentation for android.view.ViewStructure.setText(java.lang.CharSequence, 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

SetText(String, Int32, Int32)

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

public void SetText (string? text, int selectionStart, int selectionEnd);
member this.SetText : string * int * int -> unit

Parameters

text
String
selectionStart
Int32
selectionEnd
Int32

Remarks

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

Java documentation for android.view.ViewStructure.setText(java.lang.CharSequence, 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