DocumentSettings
DocumentSettings class
Contains elements that specify document settings.
Properties
| Name | Type | Description |
|---|---|---|
| TopPage | int | Specifies the ID of the page that should be displayed when the document is opened by Microsoft Visio. |
| DefaultTextStyle | int | Specifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherit |
| DefaultLineStyle | int | Specifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherit |
| DefaultFillStyle | int | Specifies the ID of a StyleSheet element. The next time the user creates a shape using a drawing tool, the shape inherit |
| DefaultGuideStyle | int | Specifies the ID of a StyleSheet element. The next time the user creates a guide, the guide inherits its guide style fro |
| GlueSettings | int | Specifies the objects that shapes glue to when glue is enabled in the document. The value of the property is GlueSetting |
| SnapSettings | int | Specifies the objects that shapes snap to when snap is active in the window. The value of the property is SnapSettings i |
| SnapExtensions | int | Specifies whether a specific snap extension setting is enabled or disabled for the active window. The value of the prope |
| SnapAngles | FloatPointNumCollection | Contains a collection of SnapAngle elements. |
| DynamicGridEnabled | int | Specifies whether the dynamic grid feature is enabled for a document or window. The value of the property is BOOL intege |
| ProtectStyles | int | Specifies whether the user is prevented from creating or editing styles. However, regardless of this setting, the user c |
| ProtectShapes | int | Specifies whether the user is prevented from selecting shapes that have their LockSelect element set to 1. The value of |
| ProtectMasters | int | Specifies whether the user is prevented from creating, editing, or deleting masters. Regardless of this setting, the use |
| ProtectBkgnds | int | Specifies whether the user is prevented from deleting or editing background pages. The value of the property is BOOL int |
| CustomMenusFile | String | Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a doc |
| CustomToolbarsFile | String | Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a d |
| AttachedToolbars | byte[] | 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[]