TextRange.ParagraphFormat Property
Returns a ParagraphFormat object that represents paragraph formatting for the specified text. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property ParagraphFormat As ParagraphFormat
Get
'Usage
Dim instance As TextRange
Dim value As ParagraphFormat
value = instance.ParagraphFormat
ParagraphFormat ParagraphFormat { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.ParagraphFormat
ParagraphFormat
Examples
This example sets the line spacing before, within, and after each paragraph in shape two on slide one in the active presentation.
With Application.ActivePresentation.Slides(2).Shapes(2)
With .TextFrame.TextRange.ParagraphFormat.LineRuleWithin = msoTrue
.SpaceWithin = 1.4
.LineRuleBefore = msoTrue
.SpaceBefore = 0.25
.LineRuleAfter = msoTrue
.SpaceAfter = 0.75
End With
End With