Table of contents
TOC
折叠目录
展开目录

RulerLevel 对象 (PowerPoint)RulerLevel Object (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

包含大纲级别的首行缩进和悬挂缩进信息。Contains first-line indent and hanging indent information for an outline level.

注解Remarks

RulerLevel对象是RulerLevels集合的一个成员。RulerLevels集合包含五个可用的大纲级别的每个RulerLevel对象。The RulerLevel object is a member of the RulerLevels collection. The RulerLevels collection contains a RulerLevel object for each of the five available outline levels.

示例Example

使用RulerLevels (索引) 的索引所在的大纲级别,可返回一个RulerLevel对象。下面的示例设置首行缩进和悬挂缩进当前演示文稿的幻灯片母版正文文本在大纲级别 1。Use RulerLevels (index), where index is the outline level, to return a single RulerLevel object. The following example sets the first-line indent and hanging indent for outline level one in body text on the slide master for the active presentation.

With ActivePresentation.SlideMaster _
        .TextStyles(ppBodyStyle).Ruler.Levels(1)
    .FirstMargin = 9
    .LeftMargin = 54
End With

以下示例设置当前演示文稿第二个形状(第一张幻灯片中)第一级大纲的首行缩进和悬挂缩进。The following example sets the first-line indent and hanging indent for outline level one in shape two on slide one in the active presentation.

With ActivePresentation.SlideMaster.Shapes(2) _
        .TextFrame.Ruler.Levels(1)
    .FirstMargin = 9
    .LeftMargin = 54
End With

另请参阅See also

概念Concepts

PowerPoint 对象模型引用PowerPoint Object Model Reference

© 2018 Microsoft