From Xojo Documentation

Revision as of 14:28, 27 June 2019 by Gperlman (talk | contribs) (Gperlman moved page MenuItem.MenuValueAt to MenuItem.MenuAt without leaving a redirect)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

MenuItem.MenuAt(Index as Integer) As MenuItem

New in 2019r2

Supported for all project types and targets.

Item returns as a MenuItem the item indicated by its index (zero-based).


If the passed index is out of range, an OutOfBoundsException is raised.


The following example gets the MenuItem corresponding to the Cut item on the Edit menu by position:

Var c As MenuItem
c = EditMenu.MenuAt(2)