windowsforms-devexpress-dot-xtrabars-dot-itemclickeventargs-e85dc8e9.md
Gets the clicked BarItemLink.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public BarItemLink Link { get; }
Public ReadOnly Property Link As BarItemLink
| Type | Description |
|---|---|
| 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
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
Private Sub barButtonItem_Edit_ItemClick(sender As Object, e As ItemClickEventArgs)
Dim info = GetHitInfo(e.Link)
info?.View.ShowEditor()
See Also