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.
Absolute |
|
Bottom |
Anchor to the bottom on the Y axis.
|
Center |
Align in the center on both axises.
|
CenterBottom |
Anchor to the bottom side, center horizontally.
|
CenterHorizontally |
Align in the center on the X axis.
|
CenterTop |
Anchor to the top side, center horizontally.
|
CenterVertically |
Align in the center on the Y axis.
|
DontClip |
Do not cutoff text beyond its bounds. Used in <c>Graphics.DrawText</c> and <c>Graphics.MeasureText</c>.
|
Justify |
|
Left |
Align to the left on the X axis.
|
LeftBottom |
Anchor to the bottom left corner.
|
LeftCenter |
Anchor to the left side, center vertically.
|
LeftTop |
Anchor to the top left corner.
|
None |
|
Right |
Align to the right on the X axis.
|
RightBottom |
Anchor to the bottom right corner.
|
RightCenter |
Anchor to the right side, center vertically.
|
RightTop |
Anchor to the top right corner.
|
SingleLine |
Limit the text to a single line. Used in <c>Graphics.DrawText</c> and <c>Graphics.MeasureText</c>.
|
Top |
Anchor to the top on the Y axis.
|
WordWrap |
|
WrapAnywhere |
|