Table of contents
TOC
Collapse the table of content
Expand the table of content

ParagraphFormat.LineSpacing Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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

Syntax

expression. LineSpacing

_expression_A variable that represents a ParagraphFormat object.

Return Value

Variant

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 cursor is in a text box.

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