Back to Devexpress

TreeListMenuItemClickEventArgs.MenuItem Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistmenuitemclickeventargs-5acf8e90.md

latest4.4 KB
Original Source

TreeListMenuItemClickEventArgs.MenuItem Property

Gets the clicked menu item.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public DXMenuItem MenuItem { get; }
vb
Public ReadOnly Property MenuItem As DXMenuItem

Property Value

TypeDescription
DXMenuItem

A DXMenuItem object representing the clicked menu item.

|

Remarks

A menu item in the Tree List is represented by a DXMenuItem object or its descendant. Each menu item can be identified using its Tag property. For standard menu items displayed for column headers and footer cells, this property contains an appropriate value of the DevExpress.XtraTreeList.Localization.TreeListStringId enumeration:

The Tag property valueMenu Item
TreeListStringId.MenuFooterSumThe “Sum” item in the footer context menu.
TreeListStringId.MenuFooterMinThe “Min” item in the footer context menu.
TreeListStringId.MenuFooterMaxThe “Max” item in the footer context menu.
TreeListStringId.MenuFooterCountThe “Count” item in the footer context menu.
TreeListStringId.MenuFooterAverageThe “Average” item in the footer context menu.
TreeListStringId.MenuFooterNoneThe “None” item in the footer context menu.
TreeListStringId.MenuFooterAllNodesThe “AllNodes” item in the footer context menu.
TreeListStringId.MenuColumnSortAscendingThe “Sort Ascending” item in the column header context menu.
TreeListStringId.MenuColumnSortDescendingThe “Sort Descending” item in the column header context menu.
TreeListStringId.MenuColumnColumnCustomizationThe “Runtime Column Customization” item in the column header context menu.
TreeListStringId.MenuColumnBestFitThe “Best Fit” item in the column header context menu.
TreeListStringId.MenuColumnBestFitAllColumnsThe “Best Fit (all columns)” item in the column header context menu.

For more information on menu items, refer to the Context Menus topic.

See Also

Context Menus

TreeListMenuItemClickEventArgs Class

TreeListMenuItemClickEventArgs Members

DevExpress.XtraTreeList Namespace