DocumentSettings Element

Contains elements that specify document settings.

Syntax

<DocumentSettings
    [TopPage]
    [DefaultTextStyle]
    [DefaultLineStyle]
    [DefaultFillStyle]
    [DefaultGuideStyle]>
</DocumentSettings>

Attributes

TopPage

Optional int. Specifies the ID of the page that should be displayed when the document is opened by Microsoft Visio.

If a Window element is present in the document, its Page attribute will override this attribute.

DefaultTextStyle

Optional int. Specifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherits its text style from the specified StyleSheet element.

DefaultLineStyle

Optional int. Specifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherits its line style from the specified StyleSheet element.

DefaultFillStyle

Optional int. Specifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherits its fill style from the specified StyleSheet element.

DefaultGuideStyle

Optional int. Specifies the ID of a StyleSheet element. The next time the user creates a guide, the guide inherits its guide style from the specified StyleSheet element.

Element properties

Property

Value

Name

DocumentSettings

Minimum Occurrences

0

Maximum Occurrences

1

Element information

Parent elements

VisioDocument

Child elements

GlueSettings

SnapSettings

SnapExtensions

SnapAngles

DynamicGridEnabled

ProtectStyles

ProtectShapes

ProtectMasters

ProtectBkgnds

CustomMenusFile

CustomToolbarsFile

AttachedToolbars

See also

Document object