DocumentSettings class

DocumentSettings class

Contains elements that specify document settings.

The DocumentSettings type exposes the following members:

Properties

PropertyDescription
top_pageSpecifies the ID of the page that should be displayed when the document is opened by Microsoft Visio.
default_text_styleSpecifies 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.
default_line_styleSpecifies 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.
default_fill_styleSpecifies 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.
default_guide_styleSpecifies 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.
glue_settingsSpecifies the objects that shapes glue to when glue is enabled in the document.
snap_settingsSpecifies the objects that shapes snap to when snap is active in the window.
snap_extensionsSpecifies whether a specific snap extension setting is enabled or disabled for the active window.
snap_anglesContains a collection of SnapAngle elements.
dynamic_grid_enabledSpecifies whether the dynamic grid feature is enabled for a document or window.
protect_stylesSpecifies whether the user is prevented from creating or editing styles. However, regardless of this setting, the user can still apply styles.
protect_shapesSpecifies whether the user is prevented from selecting shapes that have their LockSelect element set to 1.
protect_mastersSpecifies whether the user is prevented from creating, editing, or deleting masters. Regardless of this setting, the user can still create instances of masters.
protect_bkgndsSpecifies whether the user is prevented from deleting or editing background pages.
custom_menus_fileContains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a document.
custom_toolbars_fileContains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a document.
attached_toolbarsA MIME (Multipurpose Internet Mail Extensions) encoded Microsoft Visio user interface (VSU) file representing custom toolbars.

See Also