IMenu.GetItem(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.
Gets the menu item at the given index.
[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 Android.Views.IMenuItem? GetItem (int index);
[<Android.Runtime.Register("getItem", "(I)Landroid/view/MenuItem;", "GetGetItem_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetItem : int -> Android.Views.IMenuItem
Parameters
- index
- Int32
The index of the menu item to return.
Returns
The menu item.
- Attributes
Exceptions
when index = size()
Remarks
Gets the menu item at the given index.
Java documentation for android.view.Menu.getItem(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.