Back to Devexpress

BarItem.ItemDoubleClick Event

windowsforms-devexpress-dot-xtrabars-dot-baritem-0828e2e7.md

latest3.7 KB
Original Source

BarItem.ItemDoubleClick Event

Fires when a link to an item is double-clicked.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event ItemClickEventHandler ItemDoubleClick
vb
Public Event ItemDoubleClick As ItemClickEventHandler

Event Data

The ItemDoubleClick event's data class is ItemClickEventArgs. The following properties provide information specific to this event:

PropertyDescription
ItemGets the BarItem whose link was clicked.
LinkGets the clicked BarItemLink.
MouseButtonGets the pressed mouse button.

Remarks

The ItemDoubleClick event occurs when the end-user double-clicks an item’s link. The event parameter’s ItemClickEventArgs.Link and ItemClickEventArgs.Item properties allow you to identify the link that was double clicked and the item it corresponds to.

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

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-spreadsheet-implement-microsoft-excel-format-painter/CS/WindowsFormsApplication1/FormatPainterProvider.cs#L29

csharp
biFormatPainter.CheckedChanged += barCheckItem1_CheckedChanged;
biFormatPainter.ItemDoubleClick += barCheckItem1_ItemDoubleClick;

winforms-spreadsheet-implement-microsoft-excel-format-painter/VB/WindowsFormsApplication1/FormatPainterProvider.vb#L34

vb
AddHandler biFormatPainter.CheckedChanged, AddressOf barCheckItem1_CheckedChanged
    AddHandler biFormatPainter.ItemDoubleClick, AddressOf barCheckItem1_ItemDoubleClick
End Sub

See Also

ItemClick

ItemPress

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace