Android Guides | Samples

Android.App.ListActivity.SetSelection Method

Set the currently selected list item to the specified position with the adapter's data

Syntax

[Android.Runtime.Register("setSelection", "(I)V", "GetSetSelection_IHandler")]
public virtual Void SetSelection (Int32 position)

Parameters

position

Remarks

Set the currently selected list item to the specified position with the adapter's data

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1