
**Inheritance:**
java.lang.Object
```
public class DocumentSettings
```

Contains elements that specify document settings.
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getAttachedToolbars()](#getAttachedToolbars--) | A MIME (Multipurpose Internet Mail Extensions) encoded Microsoft Visio user interface (VSU) file representing custom toolbars. |
| [getClass()](#getClass--) |  |
| [getCustomMenusFile()](#getCustomMenusFile--) | Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a document. |
| [getCustomToolbarsFile()](#getCustomToolbarsFile--) | Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a document. |
| [getDefaultFillStyle()](#getDefaultFillStyle--) | Specifies the ID of a StyleSheet element. |
| [getDefaultGuideStyle()](#getDefaultGuideStyle--) | Specifies the ID of a StyleSheet element. |
| [getDefaultLineStyle()](#getDefaultLineStyle--) | Specifies the ID of a StyleSheet element. |
| [getDefaultTextStyle()](#getDefaultTextStyle--) | Specifies the ID of a StyleSheet element. |
| [getDynamicGridEnabled()](#getDynamicGridEnabled--) | Specifies whether the dynamic grid feature is enabled for a document or window. |
| [getGlueSettings()](#getGlueSettings--) | Specifies the objects that shapes glue to when glue is enabled in the document. |
| [getProtectBkgnds()](#getProtectBkgnds--) | Specifies whether the user is prevented from deleting or editing background pages. |
| [getProtectMasters()](#getProtectMasters--) | Specifies whether the user is prevented from creating, editing, or deleting masters. |
| [getProtectShapes()](#getProtectShapes--) | Specifies whether the user is prevented from selecting shapes that have their LockSelect element set to 1. |
| [getProtectStyles()](#getProtectStyles--) | Specifies whether the user is prevented from creating or editing styles. |
| [getSnapAngles()](#getSnapAngles--) | Contains a collection of SnapAngle elements. |
| [getSnapExtensions()](#getSnapExtensions--) | Specifies whether a specific snap extension setting is enabled or disabled for the active window. |
| [getSnapSettings()](#getSnapSettings--) | Specifies the objects that shapes snap to when snap is active in the window. |
| [getTopPage()](#getTopPage--) | Specifies the ID of the page that should be displayed when the document is opened by Microsoft Visio. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setAttachedToolbars(byte[] value)](#setAttachedToolbars-byte---) | For the description of this property, please see [getAttachedToolbars()](../../com.aspose.diagram/documentsettings\#getAttachedToolbars--) |
| [setCustomMenusFile(String value)](#setCustomMenusFile-java.lang.String-) | For the description of this property, please see [getCustomMenusFile()](../../com.aspose.diagram/documentsettings\#getCustomMenusFile--) |
| [setCustomToolbarsFile(String value)](#setCustomToolbarsFile-java.lang.String-) | For the description of this property, please see [getCustomToolbarsFile()](../../com.aspose.diagram/documentsettings\#getCustomToolbarsFile--) |
| [setDefaultFillStyle(int value)](#setDefaultFillStyle-int-) | For the description of this property, please see [getDefaultFillStyle()](../../com.aspose.diagram/documentsettings\#getDefaultFillStyle--) |
| [setDefaultGuideStyle(int value)](#setDefaultGuideStyle-int-) | For the description of this property, please see [getDefaultGuideStyle()](../../com.aspose.diagram/documentsettings\#getDefaultGuideStyle--) |
| [setDefaultLineStyle(int value)](#setDefaultLineStyle-int-) | For the description of this property, please see [getDefaultLineStyle()](../../com.aspose.diagram/documentsettings\#getDefaultLineStyle--) |
| [setDefaultTextStyle(int value)](#setDefaultTextStyle-int-) | For the description of this property, please see [getDefaultTextStyle()](../../com.aspose.diagram/documentsettings\#getDefaultTextStyle--) |
| [setDynamicGridEnabled(int value)](#setDynamicGridEnabled-int-) | For the description of this property, please see [getDynamicGridEnabled()](../../com.aspose.diagram/documentsettings\#getDynamicGridEnabled--) |
| [setGlueSettings(int value)](#setGlueSettings-int-) | For the description of this property, please see [getGlueSettings()](../../com.aspose.diagram/documentsettings\#getGlueSettings--) |
| [setProtectBkgnds(int value)](#setProtectBkgnds-int-) | For the description of this property, please see [getProtectBkgnds()](../../com.aspose.diagram/documentsettings\#getProtectBkgnds--) |
| [setProtectMasters(int value)](#setProtectMasters-int-) | For the description of this property, please see [getProtectMasters()](../../com.aspose.diagram/documentsettings\#getProtectMasters--) |
| [setProtectShapes(int value)](#setProtectShapes-int-) | For the description of this property, please see [getProtectShapes()](../../com.aspose.diagram/documentsettings\#getProtectShapes--) |
| [setProtectStyles(int value)](#setProtectStyles-int-) | For the description of this property, please see [getProtectStyles()](../../com.aspose.diagram/documentsettings\#getProtectStyles--) |
| [setSnapAngles(FloatPointNumCollection value)](#setSnapAngles-com.aspose.diagram.FloatPointNumCollection-) | For the description of this property, please see [getSnapAngles()](../../com.aspose.diagram/documentsettings\#getSnapAngles--) |
| [setSnapExtensions(int value)](#setSnapExtensions-int-) | For the description of this property, please see [getSnapExtensions()](../../com.aspose.diagram/documentsettings\#getSnapExtensions--) |
| [setSnapSettings(int value)](#setSnapSettings-int-) | For the description of this property, please see [getSnapSettings()](../../com.aspose.diagram/documentsettings\#getSnapSettings--) |
| [setTopPage(int value)](#setTopPage-int-) | For the description of this property, please see [getTopPage()](../../com.aspose.diagram/documentsettings\#getTopPage--) |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getAttachedToolbars() {#getAttachedToolbars--}
```
public byte[] getAttachedToolbars()
```


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

**Returns:**
byte[]
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getCustomMenusFile() {#getCustomMenusFile--}
```
public String getCustomMenusFile()
```


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

**Returns:**
java.lang.String
### getCustomToolbarsFile() {#getCustomToolbarsFile--}
```
public String getCustomToolbarsFile()
```


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

**Returns:**
java.lang.String
### getDefaultFillStyle() {#getDefaultFillStyle--}
```
public int getDefaultFillStyle()
```


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.

**Returns:**
int
### getDefaultGuideStyle() {#getDefaultGuideStyle--}
```
public int getDefaultGuideStyle()
```


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.

**Returns:**
int
### getDefaultLineStyle() {#getDefaultLineStyle--}
```
public int getDefaultLineStyle()
```


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.

**Returns:**
int
### getDefaultTextStyle() {#getDefaultTextStyle--}
```
public int getDefaultTextStyle()
```


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.

**Returns:**
int
### getDynamicGridEnabled() {#getDynamicGridEnabled--}
```
public int getDynamicGridEnabled()
```


Specifies whether the dynamic grid feature is enabled for a document or window.

**Returns:**
int
### getGlueSettings() {#getGlueSettings--}
```
public int getGlueSettings()
```


Specifies the objects that shapes glue to when glue is enabled in the document.

**Returns:**
int
### getProtectBkgnds() {#getProtectBkgnds--}
```
public int getProtectBkgnds()
```


Specifies whether the user is prevented from deleting or editing background pages.

**Returns:**
int
### getProtectMasters() {#getProtectMasters--}
```
public int getProtectMasters()
```


Specifies whether the user is prevented from creating, editing, or deleting masters. Regardless of this setting, the user can still create instances of masters.

**Returns:**
int
### getProtectShapes() {#getProtectShapes--}
```
public int getProtectShapes()
```


Specifies whether the user is prevented from selecting shapes that have their LockSelect element set to 1.

**Returns:**
int
### getProtectStyles() {#getProtectStyles--}
```
public int getProtectStyles()
```


Specifies whether the user is prevented from creating or editing styles. However, regardless of this setting, the user can still apply styles.

**Returns:**
int
### getSnapAngles() {#getSnapAngles--}
```
public FloatPointNumCollection getSnapAngles()
```


Contains a collection of SnapAngle elements.

**Returns:**
[FloatPointNumCollection](../../com.aspose.diagram/floatpointnumcollection)
### getSnapExtensions() {#getSnapExtensions--}
```
public int getSnapExtensions()
```


Specifies whether a specific snap extension setting is enabled or disabled for the active window.

**Returns:**
int
### getSnapSettings() {#getSnapSettings--}
```
public int getSnapSettings()
```


Specifies the objects that shapes snap to when snap is active in the window.

**Returns:**
int
### getTopPage() {#getTopPage--}
```
public int getTopPage()
```


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

**Returns:**
int
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setAttachedToolbars(byte[] value) {#setAttachedToolbars-byte---}
```
public void setAttachedToolbars(byte[] value)
```


For the description of this property, please see [getAttachedToolbars()](../../com.aspose.diagram/documentsettings\#getAttachedToolbars--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte[] |  |

### setCustomMenusFile(String value) {#setCustomMenusFile-java.lang.String-}
```
public void setCustomMenusFile(String value)
```


For the description of this property, please see [getCustomMenusFile()](../../com.aspose.diagram/documentsettings\#getCustomMenusFile--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setCustomToolbarsFile(String value) {#setCustomToolbarsFile-java.lang.String-}
```
public void setCustomToolbarsFile(String value)
```


For the description of this property, please see [getCustomToolbarsFile()](../../com.aspose.diagram/documentsettings\#getCustomToolbarsFile--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setDefaultFillStyle(int value) {#setDefaultFillStyle-int-}
```
public void setDefaultFillStyle(int value)
```


For the description of this property, please see [getDefaultFillStyle()](../../com.aspose.diagram/documentsettings\#getDefaultFillStyle--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setDefaultGuideStyle(int value) {#setDefaultGuideStyle-int-}
```
public void setDefaultGuideStyle(int value)
```


For the description of this property, please see [getDefaultGuideStyle()](../../com.aspose.diagram/documentsettings\#getDefaultGuideStyle--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setDefaultLineStyle(int value) {#setDefaultLineStyle-int-}
```
public void setDefaultLineStyle(int value)
```


For the description of this property, please see [getDefaultLineStyle()](../../com.aspose.diagram/documentsettings\#getDefaultLineStyle--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setDefaultTextStyle(int value) {#setDefaultTextStyle-int-}
```
public void setDefaultTextStyle(int value)
```


For the description of this property, please see [getDefaultTextStyle()](../../com.aspose.diagram/documentsettings\#getDefaultTextStyle--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setDynamicGridEnabled(int value) {#setDynamicGridEnabled-int-}
```
public void setDynamicGridEnabled(int value)
```


For the description of this property, please see [getDynamicGridEnabled()](../../com.aspose.diagram/documentsettings\#getDynamicGridEnabled--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setGlueSettings(int value) {#setGlueSettings-int-}
```
public void setGlueSettings(int value)
```


For the description of this property, please see [getGlueSettings()](../../com.aspose.diagram/documentsettings\#getGlueSettings--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setProtectBkgnds(int value) {#setProtectBkgnds-int-}
```
public void setProtectBkgnds(int value)
```


For the description of this property, please see [getProtectBkgnds()](../../com.aspose.diagram/documentsettings\#getProtectBkgnds--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setProtectMasters(int value) {#setProtectMasters-int-}
```
public void setProtectMasters(int value)
```


For the description of this property, please see [getProtectMasters()](../../com.aspose.diagram/documentsettings\#getProtectMasters--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setProtectShapes(int value) {#setProtectShapes-int-}
```
public void setProtectShapes(int value)
```


For the description of this property, please see [getProtectShapes()](../../com.aspose.diagram/documentsettings\#getProtectShapes--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setProtectStyles(int value) {#setProtectStyles-int-}
```
public void setProtectStyles(int value)
```


For the description of this property, please see [getProtectStyles()](../../com.aspose.diagram/documentsettings\#getProtectStyles--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setSnapAngles(FloatPointNumCollection value) {#setSnapAngles-com.aspose.diagram.FloatPointNumCollection-}
```
public void setSnapAngles(FloatPointNumCollection value)
```


For the description of this property, please see [getSnapAngles()](../../com.aspose.diagram/documentsettings\#getSnapAngles--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [FloatPointNumCollection](../../com.aspose.diagram/floatpointnumcollection) |  |

### setSnapExtensions(int value) {#setSnapExtensions-int-}
```
public void setSnapExtensions(int value)
```


For the description of this property, please see [getSnapExtensions()](../../com.aspose.diagram/documentsettings\#getSnapExtensions--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setSnapSettings(int value) {#setSnapSettings-int-}
```
public void setSnapSettings(int value)
```


For the description of this property, please see [getSnapSettings()](../../com.aspose.diagram/documentsettings\#getSnapSettings--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setTopPage(int value) {#setTopPage-int-}
```
public void setTopPage(int value)
```


For the description of this property, please see [getTopPage()](../../com.aspose.diagram/documentsettings\#getTopPage--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

