Back to Devexpress

GanttControl.TreeListPopupMenuShowing Event

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-afa08078.md

latest3.6 KB
Original Source

GanttControl.TreeListPopupMenuShowing Event

Allows you to customize the default menus for column headers, summary footers, and nodes.

Namespace : DevExpress.XtraGantt

Assembly : DevExpress.XtraGantt.v25.2.dll

NuGet Package : DevExpress.Win.Gantt

Declaration

csharp
[DXCategory("Behavior")]
public event PopupMenuShowingEventHandler TreeListPopupMenuShowing
vb
<DXCategory("Behavior")>
Public Event TreeListPopupMenuShowing As PopupMenuShowingEventHandler

Event Data

The TreeListPopupMenuShowing event's data class is PopupMenuShowingEventArgs. 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.
MenuGets or sets the control’s popup menu that will be shown.
MenuTypeGets the type of the context menu that is about to be shown.
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

The TreeListPopupMenuShowing event fires when a pop-up menu is about to be shown in the tree area. See the TreeList.PopupMenuShowing event for more information.

See Also

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace