Share via


DefaultStyle Property [Visio 2003 SDK Documentation]

Gets the default fill style of a document or sets the default fill, line, and text styles of a document.

strRet = object**.DefaultStyle**

object**.DefaultStyle** = stringExpression

strRet     String. The default fill style of the document.

object     Required. An expression that returns a Document object.

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

Version added

4.0

Remarks

A document's DefaultStyle property returns the same value as its DefaultFillStyle property. Setting the DefaultStyle property is equivalent to setting the DefaultFillStyle, DefaultLineStyle, and DefaultTextStyle properties individually to the same multiple-attribute style. The fill, line, and text attributes of the document's default style are applied to new shapes created with the Microsoft Office Visio drawing tools or with the Draw methods by Automation.

Applies to | Document object

See Also | DefaultFillStyle property | DefaultLineStyle property | DefaultTextStyle property