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.
DefaultContextMenu
The default context menu that will be displayed if the event is not cancelled.
public IMenu? DefaultContextMenu { get; set; }
Property Value
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
Inherited Members
- TabbedMdiWindowCancelEventArgs.TabbedMdiWindow
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()