Class MenuOpeningEventArgs | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

An EventArgs which allows passing a cancelable menu opening event or replacing with a newMenuBarItem.

public class MenuOpeningEventArgs : EventArgs

Inheritance

MenuOpeningEventArgs

Inherited Members

Constructors

MenuOpeningEventArgs(MenuBarItem)

Initializes a new instance of MenuOpeningEventArgs.

Properties

Cancel

Flag that allows the cancellation of the event. If set to true in the event handler, the event will be canceled.

CurrentMenu

The current MenuBarItem parent.

NewMenuBarItem

The new MenuBarItem to be replaced.