Compartir a través de


AbsSpinner.SetSelection Method

Definition

Overloads

SetSelection(Int32)

Jump directly to a specific item in the adapter data.

SetSelection(Int32, Boolean)

Jump directly to a specific item in the adapter data.

SetSelection(Int32)

Jump directly to a specific item in the adapter data.

[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

Parameters

position
Int32

Index (starting at 0) of the data item to be selected.

Attributes

Remarks

Java documentation for android.widget.AbsSpinner.setSelection(int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetSelection(Int32, Boolean)

Jump directly to a specific item in the adapter data.

[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

Parameters

position
Int32
animate
Boolean
Attributes

Remarks

Jump directly to a specific item in the adapter data.

Java documentation for android.widget.AbsSpinner.setSelection(int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to