語言

AutoCompleteTextView.ListSelection 屬性

定義

如果有下拉檢視選項,請取得該位置。 -或- 設定下拉檢視選項的位置。

public virtual int ListSelection { [Android.Runtime.Register("getListSelection", "()I", "GetGetListSelectionHandler")] get; [Android.Runtime.Register("setListSelection", "(I)V", "GetSetListSelection_IHandler")] set; }
[<get: Android.Runtime.Register("getListSelection", "()I", "GetGetListSelectionHandler")>]
[<set: Android.Runtime.Register("setListSelection", "(I)V", "GetSetListSelection_IHandler")>]
member this.ListSelection : int with get, set

屬性值

如果有,則是目前選擇的位置,或 ListView#INVALID_POSITION ListView.INVALID_POSITION 是否存在。

屬性

備註

財產取得者文件:

如果有下拉檢視選項,請取得該位置。 如果沒有下拉選單或沒有選擇,則會回傳 ListView#INVALID_POSITION ListView.INVALID_POSITION 。

Java 文件 android.widget.AutoCompleteTextView.getListSelection()。

屬性設定文件:

設定下拉檢視選項的位置。

Java 文件 android.widget.AutoCompleteTextView.setListSelection(int)。

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

適用於

另請參閱