Share via


TextStyles Interface

A collection of three text styles - title text, body text, and default text - each of which is represented by a PpTextStyleType object.

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

Syntax

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

Remarks

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.

Examples

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

See Also

Reference

TextStyles Members

Microsoft.Office.Interop.PowerPoint Namespace