wp.setLeftMargin
| Syntax |
wp.setLeftMargin (position)
|
| Params |
position is a number indicating the number of pixels to the right of the zero point of the ruler where the left margin should be set.
|
| Action |
Sets the left margin for the selection in the target window to a point position pixels to the right of the zero point on the ruler. If the selection is empty, this verb applies to the paragraph in which the cursor appears.
|
| Returns |
True
|
| Examples |
edit (@examples.testText2); wp.setSelect (0, 0); « to ensure cursor is at upper left of document wp.setLeftMargin (72) » true
Margin is now set at 1-inch for the first paragraph. |
| Notes |
It is possible to set the left margin value to the right of the right margin, but doing so can result in strange document displays and other unexpected behavior. You should always ensure that the left margin remains to the left of the right margin.
|
| See Also |
wp.getLeftMargin
|