New to Telerik UI for WinFormsStart a free 30-day trial

Encapsulates the arguments, associated with

Definition

Namespace:Telerik.WinControls.UI.Docking

Assembly:Telerik.WinControls.RadDock.dll

Syntax:

C#
public class ContextMenuDisplayingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsContextMenuDisplayingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

C#
public ContextMenuDisplayingEventArgs(DockWindow window, List<RadMenuItemBase> items, Point displayPos)
Parameters:windowDockWindowitemsList<RadMenuItemBase>displayPosPoint
C#
public ContextMenuDisplayingEventArgs(DocumentTabStrip strip, List<RadMenuItemBase> items, Point displayPos)
Parameters:stripDocumentTabStripitemsList<RadMenuItemBase>displayPosPoint

Properties

Gets or sets the position (in screen coordinates) where the context menu will be displayed.

C#
public Point DisplayPosition { get; set; }

Gets the DockWindow instance, associated with the event. Valid when the MenuType is DockWindow.

C#
public DockWindow DockWindow { get; }

Gets the DocumentTabStrip instance, associated with the event. Valid when the MenuType is ActiveWindowList.

C#
public DocumentTabStrip DocumentStrip { get; }

Gets the List of menu items, which are about to be displayed.

C#
public List<RadMenuItemBase> MenuItems { get; }

Gets the type of the context menu requested.

C#
public ContextMenuType MenuType { get; }