Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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.