Android Guides | Samples

Android.Views.IMenu.Clear Method

Remove all existing items from the menu, leaving it empty as if it had just been created.

Syntax

[Android.Runtime.Register("clear", "()V", "GetClearHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Void Clear ()

Remarks

Remove all existing items from the menu, leaving it empty as if it had just been created.

[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