AutoCompleteTextView.ListSelection 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取下拉列表视图选择的位置(如果有)。 - 或 - 设置下拉列表视图选择的位置。
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 不存在。
- 特性
注解
属性 getter 文档:
获取下拉列表视图选择的位置(如果有)。 如果没有 ListView#INVALID_POSITION ListView.INVALID_POSITION 下拉列表或没有选择,则返回。
Java文档android.widget.AutoCompleteTextView.getListSelection()。
属性 setter 文档:
设置下拉列表视图选择的位置。
Java文档android.widget.AutoCompleteTextView.setListSelection(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。