Class MenuClosingEventArgs
An EventArgs which allows passing a cancelable menu closing event.
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class MenuClosingEventArgs : EventArgs
Constructors
| Edit this page View SourceMenuClosingEventArgs(MenuBarItem, bool, bool)
Initializes a new instance of MenuClosingEventArgs.
Declaration
public MenuClosingEventArgs(MenuBarItem currentMenu, bool reopen, bool isSubMenu)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuBarItem | currentMenu | The current MenuBarItem parent. |
| bool | reopen | Whether the current menu will reopen. |
| bool | isSubMenu | Indicates whether it is a sub-menu. |
Properties
| Edit this page View SourceCancel
Flag that allows the cancellation of the event. If set to true in the
event handler, the event will be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CurrentMenu
The current MenuBarItem parent.
Declaration
public MenuBarItem CurrentMenu { get; }
Property Value
| Type | Description |
|---|---|
| MenuBarItem |
IsSubMenu
Indicates whether the current menu is a sub-menu.
Declaration
public bool IsSubMenu { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Reopen
Indicates whether the current menu will reopen.
Declaration
public bool Reopen { get; }
Property Value
| Type | Description |
|---|---|
| bool |