MenuItem.Remove

From Xojo Documentation

Revision as of 19:08, 3 September 2020 by THill (talk | contribs) (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.