# Sandbox.UI.MenuBar

A row of menu headings - File, Edit, View. Click one to open it; once one is open, hovering
another switches to it.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`MenuBar`](/api/Sandbox.UI.MenuBar/.ctor)

## Properties

- [`Menus`](/api/Sandbox.UI.MenuBar/Menus): The headings, in order.
- [`OpenMenu`](/api/Sandbox.UI.MenuBar/OpenMenu): The heading whose menu is showing, if any.

## Methods

- [`AddMenu`](/api/Sandbox.UI.MenuBar/AddMenu): Add a heading. Its row becomes the heading and its options the dropdown.
- [`CloseAll`](/api/Sandbox.UI.MenuBar/CloseAll): Close whatever is open.
- [`OnButtonTyped`](/api/Sandbox.UI.MenuBar/OnButtonTyped): Left and right that an open menu didn't use move between the headings.
- [`Show`](/api/Sandbox.UI.MenuBar/Show): Open this heading's menu, closing whichever was open.
