# TeXBox class

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

```cs
public sealed class TeXBox : ITeXElement
```

Provides a double-precision implementation of TeX-style line-breaking boxes in accordance with Donald Knuth and Michael Plass' seminal 1981 paper 'Breaking Paragraphs into Lines'.

## Constructors

- [TeXBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/ctor.md): (3 overloads) Create an empty box.

## Properties

- [Colour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/colour.md): Gets the colour associated with this box.
- [Font](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/font.md): Gets the font associated with this box, can be null.
- [Height](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/height.md): Gets the height of this box.
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/text.md): Gets the text associated with this box, can be null.
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/type.md)
- [VerticalOffset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/verticaloffset.md): Gets the vertical offset of this box in logical pixel coordinates. The offset isn't applied until the text is drawn.
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/width.md): Gets the width of this box.

## Methods

- [Append](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/append.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/tostring.md)
- [WithLogicalOffset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/withlogicaloffset.md): Assign a vertical offset to this box.
- [WithTypographicOffset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbox/withtypographicoffset.md): Assign a vertical offset to this box.
