qnx.fuse.ui.text.TextAlign

TextAlign

Constants


Packageqnx.fuse.ui.text
Classpublic class TextAlign
InheritanceTextAlign Inheritance Object

The TextAlign class contains constants that can be used to align text.

Class information:
PlayBook Tablet OS Version:   1.0.6

See also

TextFormat.align
TextTruncationMode



Public Constants

 ConstantDefined By
  CENTER : String = center
[static] Centers the text.
TextAlign
  END : String = end
[static] Aligns the text to the end edge of the line.
TextAlign
  JUSTIFY : String = justify
[static] Justifies the text.
TextAlign
  LEFT : String = left
[static] Aligns text to the left-edge of the line.
TextAlign
  RIGHT : String = right
[static] Aligns text to the right-edge of the line.
TextAlign
  START : String = start
[static] Aligns the text to the start edge of the line.
TextAlign

Constant Detail

CENTER


public static const CENTER:String = center

Centers the text.

END


public static const END:String = end

Aligns the text to the end edge of the line. Right-aligns text for left-to-right languages and left-aligns text for right-to-left languages.

JUSTIFY


public static const JUSTIFY:String = justify

Justifies the text. Text is justified on all lines except the last.

LEFT


public static const LEFT:String = left

Aligns text to the left-edge of the line. You should use the START constant instead as it behaves appropriately when switching between left-to-right and right-to-left languages.

See also

START

RIGHT


public static const RIGHT:String = right

Aligns text to the right-edge of the line. You should use the END constant instead as it behaves appropriately when switching between left-to-right and right-to-left languages.

See also

END

START


public static const START:String = start

Aligns the text to the start edge of the line. Left-aligns text for left-to-right languages and right-aligns text for right-to-left languages.