# LayoutString 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 LayoutString
```

Represents a single string with layout properties.

## Constructors

- [LayoutString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutstring/ctor.md): (2 overloads) Create a default layout string without any overrides.

## Properties

- [Alignment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutstring/alignment.md): Gets the alignment for this pair. This overrides the Key/Value alignments.
- [Contrast](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutstring/contrast.md): Gets the optional colour override.
- [Style](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutstring/style.md): Gets the optional style override.
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutstring/text.md): Gets the string text.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.layoutstring/op-implicit.md): (static) Convert a regular string into a LayoutString.
