![]() | InDesign SDK 20.5 |
#include <IMargins.h>

Public Types | |
| enum | { kDefaultIID = IID_IMARGINS } |
Public Member Functions | |
| virtual void | SetMargins (const PMReal &insideLeft, const PMReal &top, const PMReal &outsideRight, const PMReal &bottom)=0 |
| virtual void | GetMargins (PMRect *marginRect, bool16 wantMaster=kTrue)=0 |
| virtual void | GetMargins (PMReal *insideLeft, PMReal *top, PMReal *outsideRight, PMReal *bottom, bool16 wantMaster=kTrue)=0 |
| virtual bool16 | MarginsAreValid ()=0 |
| virtual void | SetMarginsAreValid (bool16 valid)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface is used to access the geometry information of page's margin.
| pure virtual |
Get the margins for the page. All positive (or 0) numbers, values relative to page edge.
| marginRect | refers to a rectangle holding four returned values(left/top/right/bottom). Note that the rectangle returned can be different in documents with two pages per spread based on the position of the page in the spread. |
| wantMaster | indicating return the margins of a master page. |
| pure virtual |
Get the margins for the page. All positive (or 0) numbers, values relative to page edge.
| insideLeft | refers to distance down from the top of page to the margin. |
| top | refers to distance up from the bottom of page to the margin. |
| outsideRight | refers to distance from left edge of page to the margin. |
| bottom | refers to distance from right edge of page to the margin. |
| wantMaster | indicating return the margins of a master page. |
| pure virtual |
Check if margins are valid or just the default.
| pure virtual |
Set a page's margins.
| insideLeft | refers to inside (for facing pages case) or left margin. |
| top | refers to top margin. |
| outsideRight | refers to outside (for facing pages case) or right margin. |
| bottom | refers to bottom margin. |
| pure virtual |
Set the margins to be valid or not for a page. On a regular page, if not valid, masters margins are in use. If valid, it means the margins have been overridden for that page.
| valid | this could be either kTrue or kFalse. |