Partager via


EditText.SetSelection Method

Definition

Overloads

SetSelection(Int32)

Convenience for Selection#setSelection(Spannable, int).

SetSelection(Int32, Int32)

Convenience for Selection#setSelection(Spannable, int, int).

SetSelection(Int32)

Convenience for Selection#setSelection(Spannable, int).

[Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")]
public virtual void SetSelection (int index);
[<Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")>]
abstract member SetSelection : int -> unit
override this.SetSelection : int -> unit

Parameters

index
Int32
Attributes

Remarks

Convenience for Selection#setSelection(Spannable, int).

Java documentation for android.widget.EditText.setSelection(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

SetSelection(Int32, Int32)

Convenience for Selection#setSelection(Spannable, int, int).

[Android.Runtime.Register("setSelection", "(II)V", "GetSetSelection_IIHandler")]
public virtual void SetSelection (int start, int stop);
[<Android.Runtime.Register("setSelection", "(II)V", "GetSetSelection_IIHandler")>]
abstract member SetSelection : int * int -> unit
override this.SetSelection : int * int -> unit

Parameters

start
Int32
stop
Int32
Attributes

Remarks

Convenience for Selection#setSelection(Spannable, int, int).

Java documentation for android.widget.EditText.setSelection(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