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

ParagraphFormat.LineRuleBefore Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Determines whether line spacing before the first line in each paragraph is set to a specific number of points or lines. Read/write.

Syntax

expression. LineRuleBefore

expression A variable that represents a ParagraphFormat object.

Return Value

MsoTriState

Remarks

The value of the LineRuleBefore property can be one of these MsoTriState constants.

ConstantDescription
msoFalseLine spacing before the first line in each paragraph is set to a specific number of points.
msoTrueLine spacing before the first line in each paragraph is set to a specific number of lines.

Example

This example displays a message box that shows the setting for space before paragraphs for text in shape two on slide one in the active presentation.

With Application.ActivePresentation.Slides(1).Shapes(2).TextFrame

    With .TextRange.ParagraphFormat

        sb = .SpaceBefore

        If .LineRuleBefore Then

            sbUnits = " lines"

        Else

            sbUnits = " points"

        End If

    End With

End With

MsgBox "Current spacing before paragraphs: " &; sb &; sbUnits

See also

Concepts

ParagraphFormat Object

© 2018 Microsoft