PGetIndents

Gets the indent settings assigned to the selected text or to the paragraph containing the insertion point.


Query results

long xLeftIndent;
Indent of body of paragraph, from left edge of text block in twips
long xFirstIndent;
Indent (positive or negative) of first line of paragraph, from xLeftIndent in twips
long xRightIndent;
Indent of body of paragraph, from right edge of text block in twips
Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the indent settings for that style, rather than for the selected text.

Multiple settings. If multiple paragraphs are selected and they have different indent settings, PageMaker returns the settings of the first paragraph.

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

Example. Move the indent settings with the PIndents command.

PGetIndents currIndents;
// change left indent
PIndents(currIndents.xLeftIndent + 50,
currIndents.xFirstIndent, currIndents.xRightIndent);


See also

The PGetTabs query



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

Comments or suggestions? Contact Adobe Developer Support