PGetPageMargins

Gets the page margins of the Document Master master page.


Query results

long xLeft;

Inside margin (or left margin for single-sided publications) in twips

long yTop;

Top margin in twips

long xRight;

Outside margin (or right margin for single-sided publications) in twips

long yBottom;

Bottom margin in twips

To change page margins, use the PPageMargins command.

Layout view only.
Use this query only in layout view.

Example.

PGetPageMargins pageMargins;
long width = pageMargins.xRight - pageMargins.xLeft;


See also

The PGetMasterPageInfoquery



Comments or suggestions? Contact Adobe Developer Support
Copyright © 1997 - 2001 Adobe Systems Incorporated. All rights reserved.
Legal notices and trademark attributions