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

Collection of [TabLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabel.md) with active tab management.

## Properties

- [ActiveIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/activeindex.md): Gets or sets the active tab. Usually this field is assigned as a response to user mouseclicks on the control.
- [ActiveTab](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/activetab.md): Gets or sets the active tab.
- [HasActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/hasactive.md): Test whether this collection has a valid active tab.
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/isempty.md): Gets whether this collection is empty.
- [LeftToRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/lefttoright.md): Enumerate over all tabs from left to right.
- [LeftToRightUpToActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/lefttorightuptoactive.md): Enumerate over all tabs from left to right up to but not including the active tab.
- [RightToLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/righttoleft.md): Enumerate over all tabs from right to left.
- [RightToLeftUpToActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/righttoleftuptoactive.md): Enumerate over all tabs from right to left up to but not including the active tab.
- [TotalWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/totalwidth.md): Gets the total width of all the tab labels.
- [ToTheLeftOfActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/totheleftofactive.md): Enumerate over all tabs to the left of the active tab, going from right to left.
- [ToTheRightOfActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/totherightofactive.md): Enumerate over all tabs to the right of the active tab, going from left to right.

## Methods

- [Activate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/activate.md): (2 overloads) Activate the tab matching the given chapter.
- [EnsureActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/ensureactive.md): Ensures that there's a valid active tab, provided there's at least one tab in this collection.
- [IsActive](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.tablabels/isactive.md): Test whether a specific label is the active one.
