Android Guides | Samples

Android.Views.IMenu.GetItem Method

Gets the menu item at the given index.

Syntax

[Android.Runtime.Register("getItem", "(I)Landroid/view/MenuItem;", "GetGetItem_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem GetItem (Int32 index)

Parameters

index
The index of the menu item to return.

Exceptions

TypeReason
IndexOutOfBoundsExceptionwhen index = size()

Remarks

Gets the menu item at the given index.

[Android Documentation]

Requirements

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