Android Guides | Samples

Android.Views.IMenu.Add Method

Add a new item to the menu.

Syntax

[Android.Runtime.Register("add", "(I)Landroid/view/MenuItem;", "GetAdd_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem Add (Int32 titleRes)

Parameters

titleRes
Resource identifier of title string.

Remarks

Add a new item to the menu. This item displays the given title for its label.

[Android Documentation]

Requirements

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