LineSpacing Property

Microsoft Publisher Visual Basic

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