Share via


ParagraphFormat.LineRuleAfter Property

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property LineRuleAfter As MsoTriState
    Get
    Set
'Usage
Dim instance As ParagraphFormat
Dim value As MsoTriState

value = instance.LineRuleAfter

instance.LineRuleAfter = value
MsoTriState LineRuleAfter { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

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

Constant

Description

msoFalse

Line spacing after the last line in each paragraph is set to a specific number of points.

msoTrue

Line spacing after the last line in each paragraph is set to a specific number of lines.

Examples

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

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

    With .TextRange.ParagraphFormat

        sa = .SpaceAfter

        If .LineRuleAfterThen

            saUnits = " lines"

        Else

            saUnits = " points"

        End If

    End With

End With

MsgBox "Current spacing after paragraphs: " & sa & saUnits

See Also

Reference

ParagraphFormat Interface

ParagraphFormat Members

Microsoft.Office.Interop.PowerPoint Namespace