wp.setSpacing
| Syntax |
wp.setSpacing (pixels)
|
| Params |
pixels is a number indicating the number of pixels to add to the vertical spacing between lines.
|
| Action |
Adds the indicated number of pixels to the vertical spacing between lines in the selection in the target window. 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); « positions cursor at upper left of document wp.setSpacing (12) » true
The vertical spacing in the first paragraph opens up a great deal! Change the 12 to 6 and execute the statement again and you can begin to see the amount of spacing involved with each change in the pixels setting. Experiment with various settings and when
This returns spacing to normal. |
| Notes |
You can supply a negative value to condense the spacing between lines. Be careful, though; it is possible to have the lines overwrite one another.
|