TextAlign

A bit-flag enum for describing alignment or positioning. Items can be combined using the ‘|’ operator, like so:

TextAlign alignment = TextAlign.XLeft | TextAlign.YTop;

Avoid combining multiple items of the same axis, and note that a few items, like Center are already a combination of multiple flags.

Static Fields and Properties

   
TextAlign Center A combination of XCenter and YCenter.
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.