Sets the distance between the specified paragraph and the previous paragraph of the shape's text.
Applies to: Shape object
object.SetParaBeforeSpacing ( iFrom, iTo, BeforeSpacing ) |
The SetParaBeforeSpacing method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Shape object. |
iFrom | Required. An expression that returns a Long value. The index of the first character of the paragraph. |
iTo | Required. An expression that returns a Long value. The index of the last character of the paragraph. |
BeforeSpacing | Required. An expression that returns a Single value. The interval between this paragraph and the previous one. |
Note, that if the paragraph collection of the shape doesn't contain the paragraph that corresponds to the character sequence within the iFrom to iTo range, the SetParaBeforeSpacing method adds a new paragraph and applies the specified interval to it.
If the iFrom and iTo parameters were specified incorrectly, no changes are made. The paragraph spacing is measured in internal units (InternalUnit).