次の方法で共有


ParagraphFormat.LineSpacing Property (Publisher)

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