In This Article

TabbedMdiWindowContextMenuEventArgs Class

Provides data for TabbedMdiWindow context menu events.

public class TabbedMdiWindowContextMenuEventArgs : TabbedMdiWindowCancelEventArgs
Inheritance:
object EventArgs CancelEventArgs TabbedMdiWindowCancelEventArgs object

Constructors

TabbedMdiWindowContextMenuEventArgs(TabbedMdiWindow?, Rectangle, TabbedMdiWindowContextMenuSource)

Provides data for TabbedMdiWindow context menu events.

public TabbedMdiWindowContextMenuEventArgs(TabbedMdiWindow? tabbedMdiWindow, Rectangle bounds, TabbedMdiWindowContextMenuSource source)
Parameter Type Description
tabbedMdiWindow TabbedMdiWindow

The TabbedMdiWindow that is affected by this event.

bounds Rectangle

The bounds around which the menu should be displayed.

source TabbedMdiWindowContextMenuSource

A TabbedMdiWindowContextMenuSource that describes the source of the context menu.

Properties

Bounds

The bounds around which the menu should be displayed.

public Rectangle Bounds { get; }

Property Value

Rectangle

DefaultContextMenu

The default context menu that will be displayed if the event is not cancelled.

public IMenu? DefaultContextMenu { get; set; }

Property Value

IMenu

Remarks

This menu object is compatible with IMenuFactory. Instances of this type are typically created by CreateMenu(MenuFactoryMenuOptions?), and the current menu factory can be accessed from Current. Use CreateMenuItem(MenuFactoryMenuItemOptions?) and CreateMenuSeparator() to create new items to be inserted into the menu. Use WrapMenu(ContextMenuStrip) to wrap a native context menu for use with this property. Use TryUnwrapMenu(IMenu, out ContextMenuStrip?) to attempt to unwrap a native context menu from this property.

Source

A TabbedMdiWindowContextMenuSource that describes the source of the context menu.

public TabbedMdiWindowContextMenuSource Source { get; }

Property Value

TabbedMdiWindowContextMenuSource

Inherited Members

Extension Methods