ViewStructure.SetText Method

Definition

Overloads

Name Description
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

text
ICharSequence

The Java.Lang.ICharSequence value used for text.

selectionStart
Int32

The System.Int32 value used for selection start.

selectionEnd
Int32

The System.Int32 value used for selection end.

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

The System.String value used for text.

selectionStart
Int32

The System.Int32 value used for selection start.

selectionEnd
Int32

The System.Int32 value used for selection end.

Remarks

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

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