語言

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)。

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

適用於