Back to Devexpress

BarLinkContainerItem.LinkDeleted Event

windowsforms-devexpress-dot-xtrabars-dot-barlinkcontaineritem-8c442b9d.md

latest2.5 KB
Original Source

BarLinkContainerItem.LinkDeleted Event

Fires immediately after a link has been removed from the sub links collection.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event LinkEventHandler LinkDeleted
vb
Public Event LinkDeleted As LinkEventHandler

Event Data

The LinkDeleted event's data class is LinkEventArgs. The following properties provide information specific to this event:

PropertyDescription
LinkGets the link associated with the event.

Remarks

Handle the LinkDeleted event to respond to moving a link away from the sub links collection. Links can be removed from sub-menus using the following two mechanisms:

  • Programmatically, using the BarLinkContainerItem.RemoveLink method.
  • By end-users, using drag and drop operations on links. Links can be dragged away from a sub-menu only when the Customization window is active.

If you want to respond to removing links from bars or context menus, handle the appropriate Bar.LinkDeleted and PopupMenuBase.LinkDeleted events.

See Also

LinkAdded

AddItem(BarItem)

AddItems(BarItem[])

InsertItem(BarItemLink, BarItem)

BarLinkContainerItem Class

BarLinkContainerItem Members

DevExpress.XtraBars Namespace