PRuleOptions

Specifies the vertical placement of paragraph rules and establishes a leading grid to ensure the alignment of baselines. 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 constructors

This class has two constructors.

PRuleOptions(long yTopOffset, long yBottomOffset, short bAlignToGrid, short dGridSize);

long yTopOffset;
Vertical offset above the baseline for the top rule, from 0 to 22.75 inches in twips
kParmDefault for automatic alignment of the upper edge of the rule with the top of the slug of the first line of every selected paragraph
long yBottomOffset;
Vertical offset below the baseline for the bottom rule, from 0 to 22.75 inches in twips
kParmDefault for automatic alignment of the bottom edge of the rule along the bottom of the slug of the last line of every selected paragraph
short bAlignToGrid;
false to not align to grid
true to align the baselines of the next paragraph to the grid
kParmDontCare to leave the setting unchanged
short dGridSize;
Grid size (from 0 to 1300 points) in tenths of a point (12.5 = 125)
kParmDontCare to leave the setting unchanged
PRuleOptions(const PGetRuleOptions& ruleOpts);
Set the rule options using the corresponding PGetRuleOptions query object.
Turning rules on. The PRuleOptions command specifies the location of paragraph rules but does not actually turn the rules on. Use the PRuleAbove or PRuleBelow command to turn the rules on or off and to specify the rule style, color, and width.

Aligning text baselines. To restore the baseline alignment of body text, set the grid size to match the leading of the body text. PageMaker measures the leading grid from the top of the text column containing the current paragraph.

Example. The following example selects a text block, inserts the insertion point before the first character of the text block, specifies a top rule of 1 pica above the baseline and automatic placement of the bottom rule. It also specifies alignment of the baseline of the text in the next paragraph to a 10-point grid.

PSelect(1);
PTextEdit();
PRuleBelow(true, kLineTwoPoint, "Red", column, twips(".25i"), twips(".25i"));
PRuleOptions(twips("1p"), -1, true, 10);


See also

The PParaOptions, PRuleAbove, and PRuleBelow commands

Adobe PageMaker 6.5 Help > Commands > Type > Paragraph


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

Comments or suggestions? Contact Adobe Developer Support