wp.setIndent
| Syntax |
wp.setIndent (setting)
|
| Params |
setting is a number indicating the number of pixels to the right (if setting is positive) or left (if it is negative) of the left margin marker where you wish to set the indentation for the selection in the target window.
|
| Action |
Moves the indent marker to the indicated position relative to the left margin marker for the selection in the target window. If the selection is empty, the change affects the paragraph in which the selection appears.
|
| Returns |
True
|
| Examples |
edit (@examples.testText2); wp.setIndent (36) » true
Notice that the left margin is still at 0 but the indent marker has moved to the 1/2-inch mark. The text in the paragraph where the selection was located when this verb was executed has shifted its first line 1/2-inch to the right.
These lines create a hanging indent where the left margin appears at 1 inch and the indent appears at 1/2-inch. |
| Notes |
It is possible to set the indent so that it appears to the left of the zero point on the ruler. This makes all text to the left of the zero point invisible.
|
| See Also |
wp.getIndent
|