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

ParagraphFormat.SpaceAfter Property (Publisher)

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

Returns or sets a Variant that represents the amount of spacing (in points) after one or more paragraphs. Read/write.

Syntax

expression. SpaceAfter

_expression_A variable that represents a ParagraphFormat object.

Return Value

Variant

Example

This example sets the spacing before and after the third paragraph in the first shape on the first page of the active publication to 6 points.

Sub SetSpacingBeforeAfterParagraph() 
 With ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .TextRange.Paragraphs(3).ParagraphFormat 
 .SpaceBefore = 6 
 .SpaceAfter = 6 
 End With 
End Sub

This example sets spacing before and after all paragraphs in the first shape on the first page of the active publication to 6 points.

Sub SetSpacingBeforeAfterAllParagraph() 
 With ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .TextRange.ParagraphFormat 
 .SpaceBefore = 12 
 .SpaceAfter = 6 
 End With 
End Sub
© 2018 Microsoft