# StringLayout 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 class StringLayout
```

Provides layout and display for string key/value pairs.

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.stringlayout/count.md): Gets the number of entries in this layout.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.stringlayout/add.md): Add a string to this layout.
- [MeasureSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.stringlayout/measuresize.md): Measure the extents of this text layout.
- [Render](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.stringlayout/render.md): Render this layout to a graphics context.
