struct TextAlign
A bit-flag enum for describing alignment or positioning.
Items can be combined using the ‘|’ operator, like so:
Align alignment = Align.YTop | Align.XLeft;
Avoid combining multiple items of the same axis. There are also a
complete list of valid bit flag combinations! These are the values
without an axis listed in their names, ‘TopLeft’, ‘BottomCenter’,
etc.
Static Fields and Properties
| TextAlign BottomCenter | Center on the X axis, and bottom on the Y axis. This is a combination of XCenter and YBottom. |
| TextAlign BottomLeft | Start on the left of the X axis, and bottom on the Y axis. This is a combination of XLeft and YBottom. |
| TextAlign BottomRight | Start on the right of the X axis, and bottom on the Y axis.This is a combination of XRight and YBottom. |
| TextAlign Center | Center on both X and Y axes. This is a combination of XCenter and YCenter. |
| TextAlign CenterLeft | Start on the left of the X axis, center on the Y axis. This is a combination of XLeft and YCenter. |
| TextAlign CenterRight | Start on the right of the X axis, center on the Y axis. This is a combination of XRight and YCenter. |
| TextAlign TopCenter | Center on the X axis, and top on the Y axis. This is a combination of XCenter and YTop. |
| TextAlign TopLeft | Start on the left of the X axis, and top on the Y axis. This is a combination of XLeft and YTop. |
| TextAlign TopRight | Start on the right of the X axis, and top on the Y axis. This is a combination of XRight and YTop. |
| TextAlign XCenter | On the x axis, the item should be centered. |
| TextAlign XLeft | On the x axis, this item should start on the left. |
| TextAlign XRight | On the x axis, this item should start on the right. |
| TextAlign YBottom | On the y axis, this item should start on the bottom. |
| TextAlign YCenter | On the y axis, the item should be centered. |
| TextAlign YTop | On the y axis, this item should start at the top. |
Operators
| op_BitwiseAnd | Allow Flag-like enum behavior. |
| op_BitwiseOr | Allow Flag-like enum behavior. |
| op_ExclusiveOr | Allow Flag-like enum behavior. |
| Implicit Conversions | For back compatibility, allows conversion from a TextAlign into an Align while providing a good obsolescence message for it. |
| op_OnesComplement | Allow Flag-like enum behavior. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!