textAlign(align, [yAlign])
Sets the current horizontal and vertical text alignment.
Type: function
Parameter(s):
- align {String}:
The horizontal text alignment to set. Must be one of the InDesign
Justificationenum values:Justification.AWAY_FROM_BINDING_SIDEJustification.CENTER_ALIGNJustification.CENTER_JUSTIFIEDJustification.FULLY_JUSTIFIEDJustification.LEFT_ALIGNJustification.RIGHT_ALIGNJustification.RIGHT_JUSTIFIEDJustification.TO_BINDING_SIDE
- yAlign {String} Optional:
The vertical text alignment to set. Must be one of the InDesign
VerticalJustificationenum values:VerticalJustification.BOTTOM_ALIGNVerticalJustification.CENTER_ALIGNVerticalJustification.JUSTIFY_ALIGNVerticalJustification.TOP_ALIGN