# Sandbox.UI.Toolbar

A horizontal or vertical strip of commands and controls. Children keep their natural size;
when space runs out the strip scrolls. Add ordinary panels directly to embed other controls.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`Toolbar`](/api/Sandbox.UI.Toolbar/.ctor)

## Properties

- [`Vertical`](/api/Sandbox.UI.Toolbar/Vertical): Arrange commands top to bottom instead of left to right.

## Methods

- [`AddButton`](/api/Sandbox.UI.Toolbar/AddButton): Add a command. Use empty text for an icon-only button, and set its Tooltip.
- [`AddMenu`](/api/Sandbox.UI.Toolbar/AddMenu): Add a dropdown command. The toolbar owns the supplied menu and deletes it with the button.
- [`AddSeparator`](/api/Sandbox.UI.Toolbar/AddSeparator): Add a divider perpendicular to the toolbar's orientation.
- [`AddSpacer`](/api/Sandbox.UI.Toolbar/AddSpacer): Push the following controls to the far end of the toolbar.
- [`AddToggle`](/api/Sandbox.UI.Toolbar/AddToggle)
- [`OnButtonTyped`](/api/Sandbox.UI.Toolbar/OnButtonTyped): Arrow keys move between buttons; embedded editors keep their own keyboard behaviour.
