TextRange2.ParagraphFormat property (Office)
Returns a ParagraphFormat object that represents paragraph formatting for the specified text. Read-only.
Syntax
expression.ParagraphFormat
expression An expression that returns a TextRange2 object.
Return value
ParagraphFormat
Example
This example sets the line spacing before, within, and after each paragraph in shape two on slide one in the active PowerPoint presentation.
With Application.ActivePresentation.Slides(2).Shapes(2)
With .TextFrame.TextRange2.ParagraphFormat
.LineRuleWithin = msoTrue
.SpaceWithin = 1.4
.LineRuleBefore = msoTrue
.SpaceBefore = 0.25
.LineRuleAfter = msoTrue
.SpaceAfter = 0.75
End With
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for