Table of Contents

Constructor MenuBarItem

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

MenuBarItem(ustring, ustring, Action, Func<bool>, MenuItem)

Initializes a new MenuBarItem as a MenuItem.

public MenuBarItem(ustring title, ustring help, Action action, Func<bool> canExecute = null, MenuItem parent = null)

Parameters

title ustring

Title for the menu item.

help ustring

Help text to display. Will be displayed next to the Title surrounded by parentheses.

action Action

Action to invoke when the menu item is activated.

canExecute Func<bool>

Function to determine if the action can currently be executed.

parent MenuItem

The parent MenuItem of this if exist, otherwise is null.

MenuBarItem(ustring, MenuItem[], MenuItem)

Initializes a new MenuBarItem.

public MenuBarItem(ustring title, MenuItem[] children, MenuItem parent = null)

Parameters

title ustring

Title for the menu item.

children MenuItem[]

The items in the current menu.

parent MenuItem

The parent MenuItem of this if exist, otherwise is null.

MenuBarItem(ustring, List<MenuItem[]>, MenuItem)

Initializes a new MenuBarItem with separate list of items.

public MenuBarItem(ustring title, List<MenuItem[]> children, MenuItem parent = null)

Parameters

title ustring

Title for the menu item.

children List<MenuItem[]>

The list of items in the current menu.

parent MenuItem

The parent MenuItem of this if exist, otherwise is null.

MenuBarItem(MenuItem[])

Initializes a new MenuBarItem.

public MenuBarItem(MenuItem[] children)

Parameters

children MenuItem[]

The items in the current menu.

MenuBarItem()

Initializes a new MenuBarItem.

public MenuBarItem()