Sdílet prostřednictvím


IMenu.RemoveItem(Int32) Method

Definition

Remove the item with the given identifier.

[Android.Runtime.Register("removeItem", "(I)V", "GetRemoveItem_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RemoveItem (int id);
[<Android.Runtime.Register("removeItem", "(I)V", "GetRemoveItem_IHandler:Android.Views.IMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RemoveItem : int -> unit

Parameters

id
Int32

The item to be removed. If there is no item with this identifier, nothing happens.

Attributes

Remarks

Remove the item with the given identifier.

Java documentation for android.view.Menu.removeItem(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.

Applies to