語言

AbsSpinner.SetSelection 方法

定義

多載

名稱 Description
SetSelection(Int32)

直接跳到適配器資料中的某個項目。

SetSelection(Int32, Boolean)

直接跳到適配器資料中的某個項目。

SetSelection(Int32)

直接跳到適配器資料中的某個項目。

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

參數

position
Int32

從 0 開始的索引,指待選取的資料項目。

屬性

備註

Java 文件 android.widget.AbsSpinner.setSelection(int, boolean)。

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

適用於

SetSelection(Int32, Boolean)

直接跳到適配器資料中的某個項目。

[Android.Runtime.Register("setSelection", "(IZ)V", "GetSetSelection_IZHandler")]
public virtual void SetSelection(int position, bool animate);
[<Android.Runtime.Register("setSelection", "(IZ)V", "GetSetSelection_IZHandler")>]
override this.SetSelection : int * bool -> unit

參數

position
Int32

零基項目位置。

animate
Boolean

boolean

屬性

備註

直接跳到適配器資料中的某個項目。

Java 文件 android.widget.AbsSpinner.setSelection(int, boolean)。

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

適用於