Table of Contents

Class MenuBar

Namespace
MiniTui
Assembly
MiniTui.dll

A row of menus along the top of the screen (1.x spec §15.5). F10 opens the first menu, Alt and a title's mnemonic opens that one, and a click on a title opens or closes it; ← → move between the menus. Set it with WithMenuBar(MenuBar?).

public sealed class MenuBar
Inheritance
MenuBar
Inherited Members

Constructors

MenuBar(params Menu[])

Create a bar with menus, left to right.

public MenuBar(params Menu[] menus)

Parameters

menus Menu[]

Exceptions

ArgumentException

menus contains null.

Properties

IsOpen

True while one of its menus (or a submenu of one) is open.

public bool IsOpen { get; }

Property Value

bool

Menus

The menus, left to right.

public IReadOnlyList<Menu> Menus { get; }

Property Value

IReadOnlyList<Menu>

Methods

Open(int)

Open the menu at index, as F10 opens the first. Does nothing while one is open, while another overlay is open, before the bar is drawn, or when the index is out of range.

public void Open(int index = 0)

Parameters

index int