Document.DefaultTextStyle Property (Visio)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Gets or sets the default text style of a document. Read/write.

expression .DefaultTextStyle

expression A variable that represents a Document object.

Return Value


The DefaultTextStyle property corresponds to the value shown in the Style box on the Font tab of the Text dialog box (click the Font arrow on the Home tab) when nothing is selected on the drawing page. The document's default text style is applied to new shapes created with the Microsoft Visio drawing tools or with the Draw methods by Automation.