返回一个 ParagraphFormat 对象,该对象表示指定文本格式的段落。 此为只读属性。
语法
表达式。ParagraphFormat
表达 返回 TextRange2 对象的表达式。
返回值
ParagraphFormat
示例
以下示例设置活动 PowerPoint 演示文稿中第一张幻灯片上第二个形状中每一段的段前、段内和段后行间距。
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
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。