# Sandbox.UI.Tab

A selectable tab belonging to a [Sandbox.UI.TabBar](/api/Sandbox.UI.TabBar).

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`Tab`](/api/Sandbox.UI.Tab/.ctor)

## Properties

- [`Bar`](/api/Sandbox.UI.Tab/Bar): The bar containing this tab.
- [`BuildContextMenu`](/api/Sandbox.UI.Tab/BuildContextMenu): Populate the right-click menu. A Close option is supplied for closable tabs.
- [`CanClose`](/api/Sandbox.UI.Tab/CanClose): Whether to show the close button and allow middle-click closing.
- [`Count`](/api/Sandbox.UI.Tab/Count): Optional count badge. Null hides the badge; zero is displayed.
- [`Icon`](/api/Sandbox.UI.Tab/Icon): Optional Material icon.
- [`IconTexture`](/api/Sandbox.UI.Tab/IconTexture): Optional texture, taking precedence over the icon. The caller owns the texture.
- [`IsIconOnly`](/api/Sandbox.UI.Tab/IsIconOnly): Whether the bar is currently hiding this tab's title to save space.
- [`Selected`](/api/Sandbox.UI.Tab/Selected): Whether this is the selected tab.
- [`Text`](/api/Sandbox.UI.Tab/Text): Text displayed on the tab.
- [`WantsDrag`](/api/Sandbox.UI.Tab/WantsDrag)

## Methods

- [`OnButtonTyped`](/api/Sandbox.UI.Tab/OnButtonTyped)
- [`OnDeleted`](/api/Sandbox.UI.Tab/OnDeleted)
