Back to Devexpress

BarLinkContainerItem.LinkAdded Event

windowsforms-devexpress-dot-xtrabars-dot-barlinkcontaineritem-b1c44c05.md

latest2.6 KB
Original Source

BarLinkContainerItem.LinkAdded Event

Fires immediately after a link has been added to the sub links collection.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event LinkEventHandler LinkAdded
vb
Public Event LinkAdded As LinkEventHandler

Event Data

The LinkAdded 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 LinkAdded event to respond to adding a link to the sub links collection. At runtime, links can be added using the following two mechanisms:

If you want to respond to adding links to bars or context menus, handle the appropriate Bar.LinkAdded and PopupMenuBase.LinkAdded events.

See Also

LinkDeleted

RemoveLink(BarItemLink)

BarLinkContainerItem Class

BarLinkContainerItem Members

DevExpress.XtraBars Namespace