com.aspose.diagram

Class DocumentSettings

  • java.lang.Object
    • com.aspose.diagram.DocumentSettings
public class DocumentSettings 
extends java.lang.Object

Contains elements that specify document settings.

Property Getters/Setters Summary
byte[]getAttachedToolbars()
void
setAttachedToolbars(byte[]value)
           A MIME (Multipurpose Internet Mail Extensions) encoded Microsoft Visio user interface (VSU) file representing custom toolbars.
java.lang.StringgetCustomMenusFile()
void
setCustomMenusFile(java.lang.Stringvalue)
           Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a document.
java.lang.StringgetCustomToolbarsFile()
void
setCustomToolbarsFile(java.lang.Stringvalue)
           Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a document.
intgetDefaultFillStyle()
void
           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.
intgetDefaultGuideStyle()
void
           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.
intgetDefaultLineStyle()
void
           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.
intgetDefaultTextStyle()
void
           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.
intgetDynamicGridEnabled()
void
           Specifies whether the dynamic grid feature is enabled for a document or window. The value of the property is BOOL integer constant.
intgetGlueSettings()
void
setGlueSettings(intvalue)
           Specifies the objects that shapes glue to when glue is enabled in the document. The value of the property is GlueSettings integer constant.
intgetProtectBkgnds()
void
           Specifies whether the user is prevented from deleting or editing background pages. The value of the property is BOOL integer constant.
intgetProtectMasters()
void
           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.
intgetProtectShapes()
void
           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.
intgetProtectStyles()
void
           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.
FloatPointNumCollectiongetSnapAngles()
void
           Contains a collection of SnapAngle elements.
intgetSnapExtensions()
void
           Specifies whether a specific snap extension setting is enabled or disabled for the active window. The value of the property is SnapExtensions integer constant.
intgetSnapSettings()
void
setSnapSettings(intvalue)
           Specifies the objects that shapes snap to when snap is active in the window. The value of the property is SnapSettings integer constant.
intgetTopPage()
void
setTopPage(intvalue)
           Specifies the ID of the page that should be displayed when the document is opened by Microsoft Visio.
 

    • Property Getters/Setters Detail

      • getTopPage/setTopPage

        public int getTopPage() / public void setTopPage(int value)
        
        Specifies the ID of the page that should be displayed when the document is opened by Microsoft Visio.
      • getDefaultTextStyle/setDefaultTextStyle

        public int getDefaultTextStyle() / public void setDefaultTextStyle(int value)
        
        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.
      • getDefaultLineStyle/setDefaultLineStyle

        public int getDefaultLineStyle() / public void setDefaultLineStyle(int value)
        
        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.
      • getDefaultFillStyle/setDefaultFillStyle

        public int getDefaultFillStyle() / public void setDefaultFillStyle(int value)
        
        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.
      • getDefaultGuideStyle/setDefaultGuideStyle

        public int getDefaultGuideStyle() / public void setDefaultGuideStyle(int value)
        
        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.
      • getGlueSettings/setGlueSettings

        public int getGlueSettings() / public void setGlueSettings(int value)
        
        Specifies the objects that shapes glue to when glue is enabled in the document. The value of the property is GlueSettings integer constant.
      • getSnapSettings/setSnapSettings

        public int getSnapSettings() / public void setSnapSettings(int value)
        
        Specifies the objects that shapes snap to when snap is active in the window. The value of the property is SnapSettings integer constant.
      • getSnapExtensions/setSnapExtensions

        public int getSnapExtensions() / public void setSnapExtensions(int value)
        
        Specifies whether a specific snap extension setting is enabled or disabled for the active window. The value of the property is SnapExtensions integer constant.
      • getDynamicGridEnabled/setDynamicGridEnabled

        public int getDynamicGridEnabled() / public void setDynamicGridEnabled(int value)
        
        Specifies whether the dynamic grid feature is enabled for a document or window. The value of the property is BOOL integer constant.
      • getProtectStyles/setProtectStyles

        public int getProtectStyles() / public void setProtectStyles(int value)
        
        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.
      • getProtectShapes/setProtectShapes

        public int getProtectShapes() / public void setProtectShapes(int value)
        
        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.
      • getProtectMasters/setProtectMasters

        public int getProtectMasters() / public void setProtectMasters(int value)
        
        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.
      • getProtectBkgnds/setProtectBkgnds

        public int getProtectBkgnds() / public void setProtectBkgnds(int value)
        
        Specifies whether the user is prevented from deleting or editing background pages. The value of the property is BOOL integer constant.
      • getCustomMenusFile/setCustomMenusFile

        public java.lang.String getCustomMenusFile() / public void setCustomMenusFile(java.lang.String value)
        
        Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom menus and accelerators for a document.
      • getCustomToolbarsFile/setCustomToolbarsFile

        public java.lang.String getCustomToolbarsFile() / public void setCustomToolbarsFile(java.lang.String value)
        
        Contains the name of the Microsoft Visio user interface (.vsu) file that defines custom toolbars and status bars for a document.
      • getAttachedToolbars/setAttachedToolbars

        public byte[] getAttachedToolbars() / public void setAttachedToolbars(byte[] value)
        
        A MIME (Multipurpose Internet Mail Extensions) encoded Microsoft Visio user interface (VSU) file representing custom toolbars.