Constructor MenuChangeEventArgs
MenuChangeEventArgs(Menu, MenuChangeKind)
Initializes a new instance of the MenuChangeEventArgs class.
public MenuChangeEventArgs(Menu item, MenuChangeKind action)
Parameters
itemMenuThe menu item that was changed.
actionMenuChangeKindThe type of change that occurred.
MenuChangeEventArgs(Menu, MenuChangeKind, int)
Initializes a new instance of the MenuChangeEventArgs class with the specified menu item, action, and index.
public MenuChangeEventArgs(Menu item, MenuChangeKind action, int index)
Parameters
itemMenuThe Menu item associated with the event.
actionMenuChangeKindThe kind of change that occurred, represented by a MenuChangeKind value.
indexintThe zero-based index of the menu item in the collection. Must be greater than or equal to 0.
Remarks
This constructor allows specifying the index of the menu item in addition to the item and the action.