Share via


LineSpacing Property [Publisher 2003 VBA Language Reference]

Returns or sets a Variant that represents the line spacing (in number of lines) for the specified paragraphs. Read/write.

expression.LineSpacing

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

You can use the LineSpacingRule property to set the line spacing to a preset value.

Example

This example sets the line spacing of the paragraph at the cursor position to three lines. This example assumes the insertion point is in a text box.

Sub SetLineSpacing()
    Selection.TextRange.ParagraphFormat.LineSpacing = 3
End Sub

Applies to | ParagraphFormat Object