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

A cached collection of TeX boxes properly laid out.

## Constructors

- [TeXCache](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/ctor.md): (2 overloads) Cache the boxes as implied by a TeX break sequence.

## Properties

- [Anchor](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/anchor.md): Gets the anchor for the layout.
- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/bounds.md): Gets the bounds of the entire text block.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/count.md): Gets the total number of boxes cached.
- [Lines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/lines.md): Gets the extent of every line, in order from top to bottom. A line without any visible content has zero width but still occupies its height.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/item.md): Gets the box and insertion point for a specific cached box.

## Methods

- [CreateFromPlainText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/createfromplaintext.md): (static) Create a layout cache directly from plain text.
- [CreateFromTeXText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/createfromtextext.md): (static) Create a layout cache directly from TeX formatted text. Only a few TeX commands are supported.
- [Move](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/move.md): Move all boxes by a fixed amount.
- [RenderEmptyBoxes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/renderemptyboxes.md): Render all empty boxes.
- [RenderTextBoxes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texcache/rendertextboxes.md): (2 overloads) Render all text boxes.
