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

Represents a potential line break position within a TeXStream.

## Constructors

- [TeXBreak](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/ctor.md): (2 overloads) Create the initial root in a break sequence.

## Properties

- [Aleph0GlueCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/aleph0gluecount.md): Gets the number of glue elements with Aleph0 level infinite stretchability.
- [Aleph1GlueCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/aleph1gluecount.md): Gets the number of glue elements with Aleph1 level infinite stretchability.
- [Boxes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/boxes.md): Enumerate over all TeX boxes on this line.
- [BreakSequence](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/breaksequence.md): Enumerate over all the breaks leading up to this one, starting with the oldest.
- [CumulativeBoxWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/cumulativeboxwidth.md): Gets the cumulative width of all boxes on this line.
- [CumulativeGlueWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/cumulativegluewidth.md): Gets the cumulative ideal width of all glue on this line.
- [Elements](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/elements.md): Enumerate over all TeX elements on this line.
- [Glue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/glue.md): Enumerate over all TeX glue on this line.
- [IdealWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/idealwidth.md): Gets the ideal width of this line if all glue were to remain unmolested.
- [Index0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/index0.md): Gets the index of the first TeX element on this break line.
- [Index1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/index1.md): Gets the index of the last TeX element on this break line.
- [LineIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/lineindex.md): Gets the line index this break represents.
- [LineWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/linewidth.md): Gets the line width this break is associated with.
- [LocalDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/localdemerits.md): Gets the demerits associated with this particular break.
- [MaximumGlueWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/maximumgluewidth.md): Gets the cumulative maximum width of all glue on this line.
- [MaximumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/maximumwidth.md): Gets the maximum width of this line if all glue were to be stretched as far as it allows itself to be stretched.
- [MinimumGlueWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/minimumgluewidth.md): Gets the cumulative minimum width of all glue on this line.
- [MinimumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/minimumwidth.md): Gets the minimum width of this line if all glue were to be shrunk as far as it allows itself to be shrunk.
- [Overfull](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/overfull.md): Geta whether this line is overfull, i.e. whether it contains too many items and not enough shrinkability to fit within the target width.
- [ParagraphIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/paragraphindex.md): Gets the paragraph index this break is associated with.
- [Penalties](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/penalties.md): Enumerate over all TeX penalties on this line.
- [PenaltyWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/penaltywidth.md): Gets the added width due to an ending penalty.
- [Root](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/root.md): Gets the root break (if any) of this break.
- [Stream](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/stream.md): Gets the TeX stream associated with this break.
- [StretchCategory](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/stretchcategory.md): Gets the shrinkage/stretching category associated with the line leading up to this break.
- [StretchRatio](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/stretchratio.md): Gets the glue adjustment ratio for the line leading up to this break.
- [TotalDemerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/totaldemerits.md): Gets the accumulated demerits for the entire break hierarchy up to this break.
- [UnderFull](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/underfull.md): Gets whether this line is underfull, i.e. whether it contains insufficient items and not enough stretchability to fit within the target width.

## Methods

- [BoxesAndOffsets](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/boxesandoffsets.md): Position all boxes on this line.
- [RenderLines](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/renderlines.md): Render a set of lines as defined by a break sequence.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/tostring.md)
- [ToTeXCache](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texbreak/totexcache.md): Cache the location of all the layout boxes. This is the best way of storing typeset glyphs for fast drawing.
