PAlignment

Specifies paragraph alignment. The extent of the action depends on which tool is active, whether any text is selected, and whether a publication is open when the command is executed.


Command constructor

PAlignment(eAlign cKind);
The cKind parameter should be one of the following:
kAlignmentLeft (these are defined in PKeywords.h)
kAlignmentCenter
kAlignmentRight
kAlignmentJustify
kAlignmentForce
Specifying default alignment. If no text is selected or the pointer tool is active, this command specifies the default alignment setting.

Example. Check the alignment with a PGetAlignment query, then set right-alignment for any selected paragraphs or the next text entered in the publication.

PGetAlignment currAlign;
if (currAlign != kAlignmentRight) PAlignment(kAlignmentRight);


See also

Adobe PageMaker 6.5 Help > Commands > Type > Alignment


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support