Back to Devexpress

NavBarLinkEventHandler Delegate

windowsforms-devexpress-dot-xtranavbar-65201b52.md

latest2.4 KB
Original Source

NavBarLinkEventHandler Delegate

Represents the method that will handle events which require a link as the parameter.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
public delegate void NavBarLinkEventHandler(
    object sender,
    NavBarLinkEventArgs e
);
vb
Public Delegate Sub NavBarLinkEventHandler(
    sender As Object,
    e As NavBarLinkEventArgs
)

Parameters

NameTypeDescription
senderObject

An object representing the source of the event.

| | e | NavBarLinkEventArgs |

A NavBarLinkEventArgs object that contains event data.

|

Remarks

This method is used to handle the NavBarControl.LinkClicked, NavBarControl.LinkPressed, NavBarItem.LinkClicked, NavBarItem.LinkPressed and NavBarControl.HotTrackedLinkChanged events.

When you create a NavBarLinkEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

See Also

NavBarControl.LinkClicked

NavBarControl.LinkPressed

NavBarItem.LinkClicked

NavBarItem.LinkPressed

HotTrackedLinkChanged

DevExpress.XtraNavBar Namespace