The TextFormatAlign class provides values for text alignment in the TextFormat class.

Variables

@:enum@:implinlineread onlyCENTER:TextFormatAlign

Constant; centers the text in the text field. Use the syntax TextFormatAlign.CENTER.

@:enum@:implinlineread onlyEND:TextFormatAlign

Constant; aligns text to the end edge of a line. Same as right for left-to-right languages and same as left for right-to-left languages.

The END constant may only be used with the StageText class.

@:enum@:implinlineread onlyJUSTIFY:TextFormatAlign

Constant; justifies text within the text field. Use the syntax TextFormatAlign.JUSTIFY.

@:enum@:implinlineread onlyLEFT:TextFormatAlign

Constant; aligns text to the left within the text field. Use the syntax TextFormatAlign.LEFT.

@:enum@:implinlineread onlyRIGHT:TextFormatAlign

Constant; aligns text to the right within the text field. Use the syntax TextFormatAlign.RIGHT.

@:enum@:implinlineread onlySTART:TextFormatAlign

Constant; aligns text to the start edge of a line. Same as left for left-to-right languages and same as right for right-to-left languages.

The START constant may only be used with the StageText class.