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).

C#
[Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")]
public virtual void SetSelection (int index);

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

.NET for Android .NET for Android API 35 i .NET for Android .NET for Android API 34
Produkt Wersje
.NET for Android .NET for Android API 34, .NET for Android API 35

SetSelection(Int32, Int32)

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

C#
[Android.Runtime.Register("setSelection", "(II)V", "GetSetSelection_IIHandler")]
public virtual void SetSelection (int start, int stop);

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

.NET for Android .NET for Android API 35 i .NET for Android .NET for Android API 34
Produkt Wersje
.NET for Android .NET for Android API 34, .NET for Android API 35