Partager via


TextView.SetSelectAllOnFocus(Boolean) Method

Definition

Set the TextView so that when it takes focus, all the text is selected.

[Android.Runtime.Register("setSelectAllOnFocus", "(Z)V", "GetSetSelectAllOnFocus_ZHandler")]
public virtual void SetSelectAllOnFocus (bool selectAllOnFocus);
[<Android.Runtime.Register("setSelectAllOnFocus", "(Z)V", "GetSetSelectAllOnFocus_ZHandler")>]
abstract member SetSelectAllOnFocus : bool -> unit
override this.SetSelectAllOnFocus : bool -> unit

Parameters

selectAllOnFocus
Boolean
Attributes

Remarks

Set the TextView so that when it takes focus, all the text is selected.

Java documentation for android.widget.TextView.setSelectAllOnFocus(boolean).

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