Back to Devexpress

TreeList.ShowTreeListMenu Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-741d5ce3.md

latest4.2 KB
Original Source

TreeList.ShowTreeListMenu Event

OBSOLETE

You should use the 'PopupMenuShowing' instead

Allows you to customize the default menus for column headers, row and footer summaries, nodes, and the empty area.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You should use the 'PopupMenuShowing' instead", false)]
public event TreeListMenuEventHandler ShowTreeListMenu
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<Obsolete("You should use the 'PopupMenuShowing' instead", False)>
Public Event ShowTreeListMenu As TreeListMenuEventHandler

Event Data

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

PropertyDescription
AllowGets or sets whether to display the context menu. Inherited from BasePopupMenuShowingEventArgs.
HitInfoProvides access to information about the clicked visual element. Inherited from PopupMenuShowingEventArgs.
MenuGets or sets the control’s popup menu that will be shown. Inherited from PopupMenuShowingEventArgs.
MenuTypeGets the type of the context menu that is about to be shown. Inherited from PopupMenuShowingEventArgs.
PointGets or sets coordinates of the invoked context menu (top-left corner) relative to the parent control. Inherited from BasePopupMenuShowingEventArgs.
ScreenPointGets coordinates of the invoked context menu (top-left corner) relative to the screen. Inherited from BasePopupMenuShowingEventArgs.

The event data class exposes the following methods:

MethodDescription
ShowCustomMenu(IDXDropDownControlEx)Invokes a custom context menu instead of the control’s menu. Inherited from BasePopupMenuShowingEventArgs.
ShowCustomMenu(ContextMenuStrip)Invokes a custom context menu instead of the control’s menu. Inherited from BasePopupMenuShowingEventArgs.

Remarks

Use the TreeList.PopupMenuShowing event instead.

See Also

PopupMenuShowing

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace