語言

ListActivity.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

位置

屬性

備註

將目前選取的清單項目與適配器資料設定到指定位置

Android 參考資料。android.app.ListActivity.setSelection

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

適用於