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

TextStyleLevel Object (PowerPoint)

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

Contains character and paragraph formatting information for an outline level.


The TextStyleLevel object is a member of the TextStyleLevels collection. The TextStyleLevels collection contains one TextStyleLevel object for each of the five outline levels.


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, the space before paragraphs, and the paragraph alignment for level-one body text on all the slides in the active presentation.

With ActivePresentation.SlideMaster _
    With .Font
        .Name = "Arial"
        .Size = 36
    End With
    With .ParagraphFormat
        .LineRuleBefore = False
        .SpaceBefore = 14
        .Alignment = ppAlignJustify
    End With
End With

See also


PowerPoint Object Model Reference

© 2017 Microsoft