# Layout class

Namespace: [Grasshopper2.UI](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class Layout
```

Provides static methods for layout out axis aligned boxes.

## Methods

- [AlignBottom](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/alignbottom.md): (2 overloads, static) Align all boxes in an array so they all share the same right-coordinate.
- [AlignLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/alignleft.md): (2 overloads, static) Align all boxes in an array so they all share the same left-coordinate.
- [AlignMiddleX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/alignmiddlex.md): (2 overloads, static) Align all boxes in an array so they all share the same middle-x-coordinate.
- [AlignMiddleY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/alignmiddley.md): (2 overloads, static) Align all boxes in an array so they all share the same middle-y-coordinate.
- [AlignRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/alignright.md): (2 overloads, static) Align all boxes in an array so they all share the same right-coordinate.
- [AlignTop](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/aligntop.md): (2 overloads, static) Align all boxes in an array so they all share the same right-coordinate.
- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/bounds.md): (2 overloads, static) Gets the bounding box for a collection of boxes.
- [StackHorizontal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/stackhorizontal.md): (6 overloads, static) Stack a set of boxes horizontally starting from a pivot location.
- [StackVertical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layout/stackvertical.md): (6 overloads, static) Stack a set of boxes vertically starting from a pivot location.
