Table of contents
Collapse the table of content
Expand the table of content

TextStyleLevels Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

A collection of all the outline text levels. This collection always contains five members, each of which is represented by a TextStyleLevel object.


Use Levels (index), where index is a number from 1 through 5 that corresponds to the outline level, to return a single TextStyleLevel object. The following example sets the font name and font size for level-one body text on all the slides in the active presentation.

With ActivePresentation.SlideMaster _
    With .Font
        .Name = "Arial"
        .Size = 36
    End With
End With

The following example sets the font size for text at each outline level for the notes body area on all the notes pages in the active presentation.

With ActivePresentation.NotesMaster.TextStyles(ppBodyStyle).Levels

    .Item(1).Font.Size = 34

    .Item(2).Font.Size = 30

    .Item(3).Font.Size = 25

    .Item(4).Font.Size = 20

    .Item(5).Font.Size = 15

End With

See also


PowerPoint Object Model Reference

© 2018 Microsoft