# TeXPenalty 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 TeXPenalty : ITeXElement
```

A penalty element in the TeX glue-box model.

## Constructors

- [TeXPenalty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/ctor.md)

## Properties

- [CantBreak](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/cantbreak.md)
- [Demerits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/demerits.md)
- [Hyphenation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/hyphenation.md)
- [MustBreak](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/mustbreak.md)
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/type.md)
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/width.md)

## Methods

- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.typography.texpenalty/tostring.md)
