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