Class ToolBar.MenuChangeRouter
Provides functionality to manage and route changes in a menu collection to a ToolBar.
protected class ToolBar.MenuChangeRouter : ICollectionChangeRouter
- Inheritance
-
ToolBar.MenuChangeRouter
- Implements
Remarks
This class is responsible for handling collection change events, such as adding, removing, or moving menu items, and updating the associated ToolBar accordingly. It ensures that the toolbar reflects the current state of the menu collection.
Constructors
- MenuChangeRouter(ToolBar)
Initializes a new instance of the ToolBar.MenuChangeRouter class.
Methods
- InsertItem(int, IMenuItemProperties)
Inserts a menu item at the specified index to the toolbar.
- OnCollectionAdd(object?, IList, int)
Called when items are added to the collection.
- OnCollectionMove(object?, IList, int, int)
Called when items are moved within the collection.
- OnCollectionRemove(object?, IList, int)
Called when items are removed from the collection.
- OnCollectionReplace(object?, IList, IList, int)
Called when items in the collection are replaced.
- OnCollectionReset(object?)
Called when the collection is reset.