DefaultTextStyle property

Microsoft Visio Developer Reference

DefaultTextStyle property

   Example   

Gets or sets the default text style of a document.

Version added

4.0

Syntax

strRet = object.DefaultTextStyle
object.DefaultTextStyle = stringExpression

strRet

String. The default text style of the document.

object

Required. An expression that returns a Document object.

stringExpression

Required String. The name of the default text style to assign to the document.

Remarks

The DefaultTextStyle property corresponds to the value shown in the Text Style box on the Format Text toolbar when nothing is selected on the drawing page. The document's default text style is applied to new shapes created with the Visio drawing tools or with the Draw methods via Automation.