Back to Devexpress

Bar.LinkDeleted Event

windowsforms-devexpress-dot-xtrabars-dot-bar-0b00402d.md

latest2.2 KB
Original Source

Bar.LinkDeleted Event

Fires immediately after a link has been removed from the bar.

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

Write a LinkDeleted event handler to perform specific actions each time a link is removed from the bar. Links can be removed from a bar at runtime in the following ways:

  • Programmatically, using the Bar.RemoveLink method of a bar.
  • By end-users via drag and drop operations on links. (Links can be removed from a bar by dragging them to the Customization window or by dragging them to other bars. Links can be dragged from bar to bar when the ALT key is pressed.)

If you want to respond to links being deleted from context menus and sub-menus, handle the PopupMenuBase.LinkDeleted and BarLinkContainerItem.LinkDeleted events respectively.

See Also

LinkAdded

BarLinkContainerItem.LinkDeleted

PopupMenuBase.LinkDeleted

Bar Class

Bar Members

DevExpress.XtraBars Namespace