DocumentSettings

DocumentSettings class

Contains elements that specify document settings.

Properties

NameTypeDescription
TopPageintSpecifies the ID of the page that should be displayed when the document is opened by Microsoft Visio.
DefaultTextStyleintSpecifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherit
DefaultLineStyleintSpecifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherit
DefaultFillStyleintSpecifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherit
DefaultGuideStyleintSpecifies the ID of a StyleSheet element. The next time the user creates a guide, the guide inherits its guide style fro
GlueSettingsintSpecifies the objects that shapes glue to when glue is enabled in the document. The value of the property is GlueSetting
SnapSettingsintSpecifies the objects that shapes snap to when snap is active in the window. The value of the property is SnapSettings i
SnapExtensionsintSpecifies whether a specific snap extension setting is enabled or disabled for the active window. The value of the prope
SnapAnglesFloatPointNumCollectionContains a collection of SnapAngle elements.
DynamicGridEnabledintSpecifies whether the dynamic grid feature is enabled for a document or window. The value of the property is BOOL intege
ProtectStylesintSpecifies whether the user is prevented from creating or editing styles. However, regardless of this setting, the user c
ProtectShapesintSpecifies whether the user is prevented from selecting shapes that have their LockSelect element set to 1. The value of
ProtectMastersintSpecifies whether the user is prevented from creating, editing, or deleting masters. Regardless of this setting, the use
ProtectBkgndsintSpecifies whether the user is prevented from deleting or editing background pages. The value of the property is BOOL int
CustomMenusFileStringContains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a doc
CustomToolbarsFileStringContains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a d
AttachedToolbarsbyte[]A MIME (Multipurpose Internet Mail Extensions) encoded Microsoft Visio user interface (VSU) file representing custom too

DocumentSettings.TopPage property

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

Type: int

DocumentSettings.DefaultTextStyle property

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.

Type: int

DocumentSettings.DefaultLineStyle property

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.

Type: int

DocumentSettings.DefaultFillStyle property

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.

Type: int

DocumentSettings.DefaultGuideStyle property

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.

Type: int

DocumentSettings.GlueSettings property

Specifies the objects that shapes glue to when glue is enabled in the document. The value of the property is GlueSettings integer constant.

Type: int

DocumentSettings.SnapSettings property

Specifies the objects that shapes snap to when snap is active in the window. The value of the property is SnapSettings integer constant.

Type: int

DocumentSettings.SnapExtensions property

Specifies whether a specific snap extension setting is enabled or disabled for the active window. The value of the property is SnapExtensions integer constant.

Type: int

DocumentSettings.SnapAngles property

Contains a collection of SnapAngle elements.

Type: FloatPointNumCollection

DocumentSettings.DynamicGridEnabled property

Specifies whether the dynamic grid feature is enabled for a document or window. The value of the property is BOOL integer constant.

Type: int

DocumentSettings.ProtectStyles property

Specifies whether the user is prevented from creating or editing styles. However, regardless of this setting, the user can still apply styles. The value of the property is BOOL integer constant.

Type: int

DocumentSettings.ProtectShapes property

Specifies whether the user is prevented from selecting shapes that have their LockSelect element set to 1. The value of the property is BOOL integer constant.

Type: int

DocumentSettings.ProtectMasters property

Specifies whether the user is prevented from creating, editing, or deleting masters. Regardless of this setting, the user can still create instances of masters. The value of the property is BOOL integer constant.

Type: int

DocumentSettings.ProtectBkgnds property

Specifies whether the user is prevented from deleting or editing background pages. The value of the property is BOOL integer constant.

Type: int

DocumentSettings.CustomMenusFile property

Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a document.

Type: String

DocumentSettings.CustomToolbarsFile property

Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a document.

Type: String

DocumentSettings.AttachedToolbars property

A MIME (Multipurpose Internet Mail Extensions) encoded Microsoft Visio user interface (VSU) file representing custom toolbars.

Type: byte[]