ParagraphFormat 属性

       

返回一个 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