MenuItem.Remove

From Xojo Documentation

Revision as of 15:00, 29 June 2020 by PLefebvre (talk | contribs)
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.