WPPageLayout API

The WPPageLayout class defines API properties and methods that specify the page layout for the document. The methods and properties are listed below in the following categories:

Headers and footers

The following methods get references to objects of type WPHFLayout. With references to those objects, you can set margins for the page header and footer. [[PS: Is this correct?]]
WPHFLayout  getHeaderLayout()
WPHFLayout  getFooterLayout()

Page dimensions and margins

The following properties set and get the page dimensions, margins, and orientation.
int  getWidth(int)
void  setWidth()
int  getHeight(int)
void  setHeight()
boolean  isLandscape()
void  setLandscape(boolean isLandscape)
int  getLeftMargin()
void  setLeftMargin(int margin)
int  getRightMargin()
void  setRightMargin(int margin)
int  getTopMargin()
void  setTopMargin(int margin)
int  getBottomMargin()
void  setBottomMargin(int margin)

Tab stops

The following properties insert and delete tab stops for the given page. insertTabStop returns a reference to a WPTabStop object. With this reference, you can access WPTabStop properties to get and reset the tab type and offset.
Enumerator  enumerateTabStops()	/* Returns a reference to the Enumerator that lists the tab stops set for the document. [[PS: Is this correct? */
WPTabStop  insertTabStop(String type, int offset)	/* The valid values for "type" are left, right, or center. */
WPTabStop  findTabStop(String name)	/* Returns a reference to the tab stop object with the specified name. */
boolean  deleteTabStop(String name)
boolean  deleteAllTabStops()
See also
WordProcessor API Index
WordProcessor Object Model
WordProcessor Home Page