Document.DefaultTextStyle property (Visio)

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

Syntax

expression.DefaultTextStyle

expression A variable that represents a Document object.

Return value

String

Remarks

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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.