Fires immediately after a link has been added to the sub links collection.
The LinkAdded event's data class is LinkEventArgs. The following properties provide information specific to this event:
|Link||Gets the link associated with the event.|
Handle the LinkAdded event to respond to adding a link to the sub links collection. At runtime, links can be added using the following two mechanisms:
- Programmatically, using the BarLinkContainerItem.AddItem, BarLinkContainerItem.AddItems and BarLinkContainerItem.InsertItem methods.
- By end-users, via the drag and drop operations on links. Links can be dragged to a sub-menu when the Customization window is displayed or when the ALT key is pressed. Note that when the Customization window is hidden, links can be dragged to sub-menus only from toolbars.