TabbedMdiWindowContextMenuEventArgs Class
Provides data for TabbedMdiWindow context menu events.
public class TabbedMdiWindowContextMenuEventArgs : TabbedMdiWindowCancelEventArgs
- Inheritance:
- object EventArgs CancelEventArgs TabbedMdiWindowCancelEventArgs object
Constructors
TabbedMdiWindowContextMenuEventArgs(TabbedMdiWindow, Rectangle, TabbedMdiWindowContextMenuSource)
Initializes a new instance of the TabbedMdiWindowContextMenuEventArgs
class.
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
Gets the bounds around which the menu should be displayed.
public Rectangle Bounds { get; }
Property Value
- Rectangle:
The bounds around which the menu should be displayed.
DefaultContextMenu
Gets or sets the default ContextMenuStrip that will be displayed if the event is not cancelled.
public ContextMenuStrip DefaultContextMenu { get; set; }
Property Value
- ContextMenuStrip:
The default ContextMenuStrip that will be displayed if the event is not cancelled.
Source
Gets a TabbedMdiWindowContextMenuSource that describes the source of the context menu.
public TabbedMdiWindowContextMenuSource Source { get; }
Property Value
- TabbedMdiWindowContextMenuSource:
A TabbedMdiWindowContextMenuSource that describes the source of the context menu.