# GH_GenericLayout class

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

```cs
public sealed class GH_GenericLayout
```

Generic layout logic for rectangle stacks.

## Methods

- [Horizontal_ByIndex](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.layout.gh-genericlayout/horizontal-byindex.md): (static) Perform left-to-right layout on a list of rectangles starting at the left edge of the layout area. Rectangles are ordered by index. The width of the rectangles is guaranteed to remain the same.
- [Horizontal_ByPosition](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.layout.gh-genericlayout/horizontal-byposition.md): (2 overloads, static) Perform left-to-right layout on a list of rectangles at the left edge of the layout area.
- [Vertical_ByIndex](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.layout.gh-genericlayout/vertical-byindex.md): (static) Perform top-to-bottom layout on a list of rectangles starting at the upper edge of the layout area. Rectangles are ordered by index. The height of the rectangles is guaranteed to remain the same.
- [Vertical_ByPosition](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.layout.gh-genericlayout/vertical-byposition.md): (2 overloads, static) Perform top-to-bottom layout on a list of rectangles at the upper edge of the layout area.
