long nSpaceBefore;
Space to precede paragraph in twips
long nSpaceAfter;
Space to follow paragraph in twipsDefining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the Space Before and Space After settings for that style rather than for the selected text.
Multiple settings. If multiple paragraphs are selected and they have different Space Before and Space After settings, PageMaker returns -2 for nSpaceBefore and nSpaceAfter.
Pointer tool. If the pointer tool is active, PageMaker gets the default settings.
Example. Reset the space before to zero using the PParaSpace command, leaving the space after the same.
PGetParaSpace paraSpace;
if (paraSpace.nSpaceBefore > 0)
PParaSpace(0, paraSpace.nSpaceAfter);
Comments or suggestions? Contact Adobe Developer Support