TextStyleLevel 对象

         
TextStyles (TextStyle)
TextStyleLevels (TextStyleLevel)
Font
ParagraphFormat

包含大纲级别的字符和段落格式信息。TextStyleLevel 对象是 TextStyleLevels 集合的成员。TextStyleLevels 集合包含所有五个大纲级别的 TextStyleLevel 对象。

使用 TextStyleLevel 对象

使用 Levels(index) 返回单个 TextStyleLevel 对象,其中 index 为 1 到 5 的数字,对应于五个大纲级别。以下示例为当前演示文稿的所有幻灯片设置字体名称和大小、段前空间、第一级正文文本的段落对齐。

With ActivePresentation.SlideMaster _
        .TextStyles(ppBodyStyle).Levels(1)
    With .Font
        .Name = "Arial"
        .Size = 36
    End With
    With .ParagraphFormat
        .LineRuleBefore = False
        .SpaceBefore = 14
        .Alignment = ppAlignJustify
    End With
End With