语言

ListPopupWindow.SetSelection(Int32) 方法

定义

设置列表的选定位置。

[Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")]
public virtual void SetSelection(int position);
[<Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")>]
abstract member SetSelection : int -> unit
override this.SetSelection : int -> unit

参数

position
Int32

要设置为所选的列表位置。

属性

注解

设置列表的选定位置。 仅在 .#isShowing() == true

Java文档android.widget.ListPopupWindow.setSelection(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于