Table of Contents

Constructor MenuItemv2

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

MenuItemv2()

Creates a new instance of MenuItemv2.

public MenuItemv2()

MenuItemv2(View?, Command, string?, string?, Menuv2?)

Creates a new instance of MenuItemv2, binding it to targetView and command. The Key targetView has bound to command will be used as Key.

public MenuItemv2(View? targetView, Command command, string? commandText = null, string? helpText = null, Menuv2? subMenu = null)

Parameters

targetView View

The View that command will be invoked on when user does something that causes the Shortcut's Accept event to be raised.

command Command

The Command to invoke on targetView. The Key targetView has bound to command will be used as Key

commandText string

The text to display for the command.

helpText string

The help text to display.

subMenu Menuv2

The submenu to display when the user selects this menu item.

MenuItemv2(string?, string?, Action?, Key?)

public MenuItemv2(string? commandText = null, string? helpText = null, Action? action = null, Key? key = null)

Parameters

commandText string
helpText string
action Action
key Key

MenuItemv2(string, Key, Action?)

public MenuItemv2(string commandText, Key key, Action? action = null)

Parameters

commandText string
key Key
action Action

MenuItemv2(string?, string?, Menuv2?)

public MenuItemv2(string? commandText = null, string? helpText = null, Menuv2? subMenu = null)

Parameters

commandText string
helpText string
subMenu Menuv2