語言

TextView.SetSelectAllOnFocus(Boolean) 方法

定義

設定 TextView,以便在取得焦點時選取所有文字。

[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

參數

selectAllOnFocus
Boolean

boolean

屬性

備註

設定 TextView,以便在取得焦點時選取所有文字。

Java 文件 android.widget.TextView.setSelectAllOnFocus(boolean)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於