LayoutPageAction
LayoutPageAction [/W=winName ] [ keyword = value [, keyword = value ...] ]
The LayoutPageAction operation adds, deletes, reorders, or adjusts the sizes of layout pages.
The LayoutPageAction operation was added in Igor Pro 7.00.
Parameters
| appendPage | Appends a new page. | |
| insertPage=page | Inserts a new page before page. | |
| Page numbers start from 1. Pass 0 for page to insert before the first page. | ||
| page=page | Makes page the active page. | |
| Page numbers start from 1. | ||
| deletePage=page | Deletes page . This action cannot be undone. | |
| Page numbers start from 1. | ||
| reorderPages={anchorPage, page1, ...} | ||
| Reorders the pages so that page1 and any others appear before anchorPage, in the same order as their appearance in the command. | ||
| Page numbers start from 1. | ||
| size=(width, height ) | Sets the global page dimensions for the layout to width and height, specified in units of points. | |
| size(page)=(width, height ) | ||
| Sets the dimensions of page to width and height, specified in units of points. | ||
| Using this keyword with page set to -1 modifies the global page dimensions for the layout. | ||
| margins=(leftMargin, topMargin, rightMargin, bottomMargin ) | ||
| Sets the global page margins for the layout to the specified values, expressed in units of points. | ||
| margins(page)=(leftMargin, topMargin, rightMargin, bottomMargin ) | ||
| Sets the margins of specified page to these values, expressed in units of points. | ||
| Page numbers start from 1. | ||
| Passing -1 for page sets the global margins for the layout. | ||
Flags
| /W=winName | Modifies the named layout. When omitted, the actions affect the top layout. | |
Details
The layout as a whole has a size and margins. These are called "global" dimensions and govern all pages by default. You can set the global dimensions using the size and margins keyword without specifying a particular page.
You can override the dimensions for a given page using size(page) and margins(page) to specify custom dimensions.
Use size(page)=(0,0) to revert the specified page to the global layout dimensions. This reverts both the page size and its margins.