MenuItem.Remove

From Xojo Documentation

Method

MenuItem.Remove(Index as Integer)

New in 5.0

Supported for all project types and targets.

Removes the MenuItem specified by its position (index).

Example

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

EditMenu.Remove(3)


Method

MenuItem.Remove(Child as MenuItem)

New in 5.0

Supported for all project types and targets.

Removes the MenuItem specified by reference.