MenuItem.Remove

From Xojo Documentation

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.