# TabPanels 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 TabPanels
```

A collection of panels.

## Properties

- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/isempty.md): Gets whether this collection is empty.
- [LeftToRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/lefttoright.md): Enumerate over all panel from left to right.
- [RightToLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/righttoleft.md): Enumerate over all panels from right to left.
- [TotalWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/totalwidth.md): Gets the total width needed to stack the current panels.

## Methods

- [DrawAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/drawall.md): Draw all the panels.
- [ShrinkPanels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/shrinkpanels.md): Shrink the panels until the combined width is less than the target width, or until no further shrinkage is possible. TODO: this needs a panel-group as well.
- [StackPanels](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanels/stackpanels.md): Stack all panels using a single anchor point.
