Back to Devexpress

ItemClickEventArgs.Link Property

windowsforms-devexpress-dot-xtrabars-dot-itemclickeventargs-e85dc8e9.md

latest2.4 KB
Original Source

ItemClickEventArgs.Link Property

Gets the clicked BarItemLink.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public BarItemLink Link { get; }
vb
Public ReadOnly Property Link As BarItemLink

Property Value

TypeDescription
BarItemLink

The clicked BarItemLink.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Link property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-show-context-menu-for-rows/CS/FormGridMenu.cs#L27

csharp
private void barButtonItem_Edit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
    GridHitInfo info = GetHitInfo(e.Link);
    info?.View.ShowEditor();

winforms-grid-show-context-menu-for-rows/VB/FormGridMenu.vb#L28

vb
Private Sub barButtonItem_Edit_ItemClick(sender As Object, e As ItemClickEventArgs)
    Dim info = GetHitInfo(e.Link)
    info?.View.ShowEditor()

See Also

BarItemLink

ItemClickEventArgs Class

ItemClickEventArgs Members

DevExpress.XtraBars Namespace