Table of Contents

Class MenuOpeningEventArgs

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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

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.