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

Document.TextStyles Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a TextStyles collection that contains a publication's text styles.

Syntax

expression. TextStyles

_expression_A variable that represents a Document object.

Return Value

TextStyles

Example

The following example displays the style name and base style of the first style in the TextStyles collection.

Sub BaseStyleName() 
 With ActiveDocument.TextStyles(1) 
 MsgBox "Style name= " &; .Name _ 
 &; vbCr &; "Base style= " &; .BaseStyle 
 End With 
End Sub
© 2018 Microsoft