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

A panel in a [TabControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabcontrol.md). A panel contains all [CompositionItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionitem.md) in an [Composition](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.composition.md) which share the same [CompositionChapter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionchapter.md) and [CompositionSection](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionsection.md).

## Constructors

- [TabPanel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/ctor.md)

## Properties

- [BarBounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/barbounds.md): Gets the bounds of the bottom panel bar.
- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/bounds.md): Gets the bounds of this panel on the [TabControl](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabcontrol.md). This property is assigned during every proxy panel layout.
- [PanelFont](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/panelfont.md): (static) Gets the font used to draw panel names.
- [Rows](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/rows.md): Gets or sets the number of rows displayed in this panel.
- [Section](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/section.md): Gets the section this panel

## Methods

- [LayoutItems](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tabpanel/layoutitems.md): Perform a layout on all items in the section.
