TextStyleLevels Interface

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("9149349A-5A91-11CF-8700-00AA0060263B")> _
Public Interface TextStyleLevels _
    Inherits Collection
'Usage
Dim instance As TextStyleLevels
[GuidAttribute("9149349A-5A91-11CF-8700-00AA0060263B")]
public interface TextStyleLevels : Collection

Examples

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 _

        .TextStyles(ppBodyStyle).Levels(1)

    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

Reference

TextStyleLevels Members

Microsoft.Office.Interop.PowerPoint Namespace