# TabLayout class

Namespace: [Grasshopper2.UI.TabbedPanel](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.tabbedpanel.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class TabLayout
```

An ordered collection of [TabGroup](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabgroup.md) and [TabLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabel.md) instances created during a [TabControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabcontrol.md) layout cycle.

## Properties

- [Elements](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/elements.md): Enumerate over all elements in this collection.
- [Groups](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/groups.md): Enumerate over all groups in this collection.
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/isempty.md): Gets whether the layout is currently empty.
- [Labels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/labels.md): Enumerate over all labels in this collection.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/add.md): (2 overloads) Add a group to this collection.
- [Clear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/clear.md): Clear all labels and groups.
- [DrawActiveTabShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/drawactivetabshape.md): Draw the shape of the active tab.
- [DrawLabelsAndGroups](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablayout/drawlabelsandgroups.md): Draw the labels, groups and active tab slab.
