DesktopMenuItem.MenuAt

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopMenuItem.MenuAt(Index as Integer) As DesktopMenuItem

New in 2021r3

Supported for all project types and targets.

Item returns as a DesktopMenuItem the item indicated by the index passed.

Notes

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

Example

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

Var c As DesktopMenuItem
c = EditMenu.MenuAt(2)
MessageBox(c.Value)