# PinnedText class

Namespace: [Grasshopper2.Eto.Drawing](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.eto.drawing.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class PinnedText
```

Creates a preplaced bit of text, either left, centre or right aligned within some frame.

## Properties

- [Font](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/font.md): Gets the font used to align this text.
- [Frame](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/frame.md): Bounding rectangle.
- [Text](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/text.md): Gets the text.

## Methods

- [Centre](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/centre.md): (static) Create left aligned pinned text.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/draw.md): Draw this pinned text.
- [Left](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/left.md): (static) Create left aligned pinned text.
- [Rebase](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/rebase.md): Relocate this pinned text without re-measuring the string.
- [Right](https://developer.rhino3d.com/api/gh2/type/grasshopper2.eto.drawing.pinnedtext/right.md): (static) Create left aligned pinned text.
