MenuItem.Remove

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

MenuItem.Remove(index As Integer)

Supported on Desktop.

Removes the MenuItem specified by its index.

Example

This code removes the Select All menu item from the Edit menu.

EditMenu.Remove(3)


Method

MenuItem.Remove(item As MenuItem)

Supported on Desktop.

Removes the MenuItem specified by reference.


Method

MenuItem.Remove(name As String)

Supported on Desktop.

Removes the MenuItem specified by the name.