GridView.SetSelection(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the currently selected item
[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.
If in touch mode, the item will not be selected but it will still be positioned
appropriately.
- Attributes
Remarks
Sets the currently selected item
Java documentation for android.widget.GridView.setSelection(int)
.
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.