Master.TextStyles Property

PowerPoint Developer Reference

Returns a TextStyles collection that represents three text styles — title text, body text, and default text — for the specified slide master. Read-only.

Syntax

expression.TextStyles

expression   A variable that represents a Master object.

Return Value
TextStyles

Remarks

For information about returning a single member of a collection, see How to: Return Objects from Collections.

Example

This example sets the font name and font size for level-one body text on slides in the active presentation.

Visual Basic for Applications
  With ActivePresentation.SlideMaster_
        .TextStyles(ppBodyStyle).Levels(1)
    With .Font
        .Name = "arial"
        .Size = 36
    End With
End With

See Also