# GH_LayoutTab class

Namespace: [Grasshopper.GUI.Ribbon](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.ribbon.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_LayoutTab : GH_ISerializable, IComparable<GH_LayoutTab>
```

Represents a tab on a ribbon layout.

## Constructors

- [GH_LayoutTab](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/ctor.md): (3 overloads) Create a new blank Tab

## Properties

- [Name](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/name.md): Gets or sets the name of this tab. Tabs must have a non-zero name or they will be "unnamed".
- [Panels](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/panels.md): Gets the list of Panels for this tab.
- [Selected](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/selected.md): Gets or sets whether this tab is selected. This property is used exclusively inside Layout Editors, not Ribbon controls.

## Methods

- [AddPanel](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/addpanel.md): (2 overloads) Add a new panel to this tab. The panel will receive a default name.
- [CompareTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/compareto.md)
- [Deselect](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/deselect.md): Deselect this tab and all objects it contains.
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/read.md)
- [SortPanels](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/sortpanels.md): Attempt to sort the panels in this tab to match a given order.
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.ribbon.gh-layouttab/write.md)
