Packageflashx.textLayout.formats
Classpublic final class TextAlign
InheritanceTextAlign Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Defines values for setting the textAlign and textAlignLast properties of the TextLayoutFormat class. The values describe the alignment of lines in the paragraph relative to the container.

See also

TextLayoutFormat.textAlign
TextLayoutFormat.textAlignLast


Public Constants
 ConstantDefined By
  CENTER : String = center
[static] Specifies center alignment within the container.
TextAlign
  END : String = end
[static] Specifies end edge alignment - text is aligned opposite from the writing order.
TextAlign
  JUSTIFY : String = justify
[static] Specifies that text is justified within the lines so they fill the container space.
TextAlign
  LEFT : String = left
[static] Specifies left edge alignment.
TextAlign
  RIGHT : String = right
[static] Specifies right edge alignment.
TextAlign
  START : String = start
[static] Specifies start edge alignment - text is aligned to match the writing order.
TextAlign
Constant Detail
CENTERConstant
public static const CENTER:String = center

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Specifies center alignment within the container.

ENDConstant 
public static const END:String = end

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Specifies end edge alignment - text is aligned opposite from the writing order. Equivalent to specifying right in left-to-right text, or left in right-to-left text.

JUSTIFYConstant 
public static const JUSTIFY:String = justify

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Specifies that text is justified within the lines so they fill the container space.

LEFTConstant 
public static const LEFT:String = left

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Specifies left edge alignment.

RIGHTConstant 
public static const RIGHT:String = right

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Specifies right edge alignment.

STARTConstant 
public static const START:String = start

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Specifies start edge alignment - text is aligned to match the writing order. Equivalent to setting left in left-to-right text, or right in right-to-left text.