TextRange.ParagraphFormat 属性 (PowerPoint)

返回一个 ParagraphFormat 对象,该对象表示指定文本格式的段落。 此为只读属性。

语法

expressionParagraphFormat

表达 一个代表 TextRange 对象的变量。

返回值

ParagraphFormat

示例

以下示例设置当前演示文稿第一张幻灯片第二个形状中每段的段前、段内和段后行间距。

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

另请参阅

TextRange 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。