Syntax

[the] textAlign of <field>

set the textAlign of field title to center

Explanation

The textAlign property controls how a field’s lines are positioned within the field. Available alignments are

  • natural - Whatever alignment makes sense for the user’s current language setting (usually left or right)
  • left - Text starts at the left edge of the line, with possibly empty space at the right.
  • right - Text ends at the right edge of the line, with possibly empty space at the left.
  • center - Text is centered horizontally on the line, with possibly empty space both on the left and the right.
  • justify - Text starts at the left edge of the line and ends at the right edge of the line, with spaces between words expanded to evenly fill the gaps. The last line behaves as if left-aligned.