Table of Contents

Constructor MenuChangeEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

MenuChangeEventArgs(Menu, MenuChangeKind)

Initializes a new instance of the MenuChangeEventArgs class.

public MenuChangeEventArgs(Menu item, MenuChangeKind action)

Parameters

item Menu

The menu item that was changed.

action MenuChangeKind

The 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

item Menu

The Menu item associated with the event.

action MenuChangeKind

The kind of change that occurred, represented by a MenuChangeKind value.

index int

The 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.