Back to Devexpress

PopupMenuBase.LinkAdded Event

windowsforms-devexpress-dot-xtrabars-dot-popupmenubase-bb4a8e4e.md

latest2.0 KB
Original Source

PopupMenuBase.LinkAdded Event

Fires immediately after a link has been added to the popup menu.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event LinkEventHandler LinkAdded
vb
<DXCategory("Events")>
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

Write a LinkAdded event handler to respond to adding links to the popup menu. At runtime, links can be added using the PopupMenuBase.AddItem, PopupMenuBase.AddItems and PopupMenuBase.InsertItem methods.

If you want to respond to removing links from the popup menu, handle the PopupMenuBase.LinkDeleted event.

See Also

LinkDeleted

ItemLinks

PopupMenuBase Class

PopupMenuBase Members

DevExpress.XtraBars Namespace