ParagraphFormat.SpaceWithin 属性 (PowerPoint)

以磅或行为单位返回或设置指定文本中基准行之间的距离。 读/写。

语法

expressionSpaceWithin

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

返回值

单精度

示例

本示例将活动演示文稿的文本(第二张幻灯片上第二个形状中)中的行间距设为 21 磅。

With Application.ActivePresentation.Slides(2).Shapes(2)

    With .TextFrame.TextRange.ParagraphFormat

        .LineRuleWithin = False

        .SpaceWithin = 21

    End With

End With

另请参阅

ParagraphFormat 对象

支持和反馈

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