Share via


TextStyles Collection Object

Master
Aa201617.parchild(en-us,office.10).gifTextStyles (TextStyle)
Aa201617.space(en-us,office.10).gifAa201617.parmult(en-us,office.10).gifRuler
Aa201617.space(en-us,office.10).gifAa201617.parmult(en-us,office.10).gifTextFrame
Aa201617.space(en-us,office.10).gifAa201617.parchild(en-us,office.10).gifTextStyleLevels (TextStyleLevel)

A collection of three text styles Aa201617.emdash(en-us,office.10).gif title text, body text, and default text Aa201617.emdash(en-us,office.10).gif each of which is represented by a TextStyle object. Each text style contains a TextFrame object that describes how text is placed within the text bounding box, a Ruler object that contains tab stops and outline indent formatting information, and a TextStyleLevels collection that contains outline text formatting information.

Using the TextStyles Collection

Use TextStyles(index), where index is either ppBodyStyle, ppDefaultStyle, or ppTitleStyle, to return a single TextStyle object. This example sets the margins for the notes body area on all the notes pages in the active presentation.

  With ActivePresentation.NotesMaster _
        .TextStyles(ppBodyStyle).TextFrame
    .MarginBottom = 50
    .MarginLeft = 50
    .MarginRight = 50
    .MarginTop = 50
End With