共用方式為


ListView.SetSelectionFromTop(Int32, Int32) 方法

定義

設定選取的專案,並將選取範圍 y 圖元置於 ListView 的上邊緣。

[Android.Runtime.Register("setSelectionFromTop", "(II)V", "GetSetSelectionFromTop_IIHandler")]
public override void SetSelectionFromTop (int position, int y);
[<Android.Runtime.Register("setSelectionFromTop", "(II)V", "GetSetSelectionFromTop_IIHandler")>]
override this.SetSelectionFromTop : int * int -> unit

參數

position
Int32

要選取之數據項的索引 (從 0 開始)。

y
Int32

與 ListView 頂端邊緣的距離(加上邊框間距),專案的位置。

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於