ParagraphFormat.SetLineSpacing method (Publisher)
Formats the line spacing of specified paragraphs.
Syntax
expression.SetLineSpacing (Rule, Spacing)
expression A variable that represents a ParagraphFormat object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Rule | Required | PbLineSpacingRule | The line spacing to use for the specified paragraphs. Can be one of the PbLineSpacingRule constants declared in the Microsoft Publisher type library. |
Spacing | Optional | Variant | The spacing (in points) for the specified paragraphs. |
Example
This example sets the line spacing to double.
Sub SetLineSpacingForSelection()
Selection.TextRange.ParagraphFormat.SetLineSpacing _
Rule:=pbLineSpacingDouble, Spacing:=12
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.