PGetRuleOptions

Gets the settings in the Paragraph Rule Options dialog box that are applied to the selected text or to the paragraph containing the insertion point.


Query results

long nTopOffset;
Offset from baseline of paragraph rules above paragraph in twips
-1 for Auto
long nBottomOffset;
Offset from baseline of paragraph rules below paragraph in twips
-1 for Auto
PMBool bAlignToGrid;
Whether align to grid is enabled (true) or disabled (false).
short nGridSize;
Size of leading grid, in tenths of a point (250.0 = 2500).

Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the offsets and leading grid for that style rather than for the selected text.
Multiple settings. If multiple paragraphs are selected and they have different attributes applied to them, PageMaker returns -2 for the parameters with conflicting settings.

Pointer tool active. If the pointer tool is active, PageMaker gets the default settings.


See also

The PRuleOptions command

The PGetRuleAbove, PGetRuleBelow, and PGetParaOptions queries



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

Comments or suggestions? Contact Adobe Developer Support