Visual Basic
C#
Managed Extensions for C++
C++/CLI
The event handler receives an argument of type MenuEventArgs containing data related to this event. The following MenuEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Element | Gets the element in which the menu is associated. |
Layer | Gets the layer on which the element which triggered the menu resides. |
Menu | Gets the type of menu (context or toolbar) selected at the time of the event. |
SubMenuId | Gets the sub menu ID of the item selected at the time of the event. |
Tool | Gets the toolbar tool with which the menu is associated. |
TopMenuId | Gets the top menu ID of the item selected at the time of the event. |
User1 | Gets the first user defined property associated with a menu item. |
User2 | Gets the second user defined property associated with a menu item. |