# LayoutPadding struct

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 readonly struct LayoutPadding
```

Padding fields for layout.

## Constructors

- [LayoutPadding](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/ctor.md): (2 overloads) Create a new layout.

## Properties

- [After](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/after.md): Gets the amount of space after a stack.
- [Before](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/before.md): Gets the amount of space before a stack.
- [Between](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/between.md): Gets the amount of space between elements.

## Methods

- [WithAfter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/withafter.md): Modify the after field.
- [WithBefore](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/withbefore.md): Modify the before field.
- [WithBeforeAndAfter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/withbeforeandafter.md): Modify the before and after fields.
- [WithBetween](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutpadding/withbetween.md): Modify the between field.
