Android Guides | Samples

Android.Views.IMenu.Add Method

Add a new item to the menu.

Syntax

[Android.Runtime.Register("add", "(Ljava/lang/CharSequence;)Landroid/view/MenuItem;", "GetAdd_Ljava_lang_CharSequence_Handler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem Add (ICharSequence title)

Parameters

title
The text to display for the item.

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