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

Variables

@:value(cast 0)@:impl@:enuminlineread onlyCENTER:TextFormatAlign = 0

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

@:value(cast 1)@:impl@:enuminlineread onlyEND:TextFormatAlign = 1

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.

@:value(cast 2)@:impl@:enuminlineread onlyJUSTIFY:TextFormatAlign = 2

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

@:value(cast 3)@:impl@:enuminlineread onlyLEFT:TextFormatAlign = 3

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

@:value(cast 4)@:impl@:enuminlineread onlyRIGHT:TextFormatAlign = 4

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

@:value(cast 5)@:impl@:enuminlineread onlySTART:TextFormatAlign = 5

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.