# Sandbox.TextFlag

Flags dictating position of text (and other elements).
Default alignment on each axis is Top, Left.
Values for each axis can be combined into a single value, conflicting values have undefined behavior.

- Kind: enum
- Namespace: `Sandbox`
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Fields

- [`Absolute`](/api/Sandbox.TextFlag/Absolute)
- [`Bottom`](/api/Sandbox.TextFlag/Bottom): Anchor to the bottom on the Y axis.
- [`Center`](/api/Sandbox.TextFlag/Center): Align in the center on both axises.
- [`CenterBottom`](/api/Sandbox.TextFlag/CenterBottom): Anchor to the bottom side, center horizontally.
- [`CenterHorizontally`](/api/Sandbox.TextFlag/CenterHorizontally): Align in the center on the X axis.
- [`CenterTop`](/api/Sandbox.TextFlag/CenterTop): Anchor to the top side, center horizontally.
- [`CenterVertically`](/api/Sandbox.TextFlag/CenterVertically): Align in the center on the Y axis.
- [`DontClip`](/api/Sandbox.TextFlag/DontClip): Do not cutoff text beyond its bounds. Used in `Graphics.DrawText` and `Graphics.MeasureText`.
- [`Justify`](/api/Sandbox.TextFlag/Justify)
- [`Left`](/api/Sandbox.TextFlag/Left): Align to the left on the X axis.
- [`LeftBottom`](/api/Sandbox.TextFlag/LeftBottom): Anchor to the bottom left corner.
- [`LeftCenter`](/api/Sandbox.TextFlag/LeftCenter): Anchor to the left side, center vertically.
- [`LeftTop`](/api/Sandbox.TextFlag/LeftTop): Anchor to the top left corner.
- [`None`](/api/Sandbox.TextFlag/None)
- [`Right`](/api/Sandbox.TextFlag/Right): Align to the right on the X axis.
- [`RightBottom`](/api/Sandbox.TextFlag/RightBottom): Anchor to the bottom right corner.
- [`RightCenter`](/api/Sandbox.TextFlag/RightCenter): Anchor to the right side, center vertically.
- [`RightTop`](/api/Sandbox.TextFlag/RightTop): Anchor to the top right corner.
- [`SingleLine`](/api/Sandbox.TextFlag/SingleLine): Limit the text to a single line. Used in `Graphics.DrawText` and `Graphics.MeasureText`.
- [`Top`](/api/Sandbox.TextFlag/Top): Anchor to the top on the Y axis.
- [`WordWrap`](/api/Sandbox.TextFlag/WordWrap)
- [`WrapAnywhere`](/api/Sandbox.TextFlag/WrapAnywhere)
