asposediagram.api

Class LoadOptions

Allows to specify additional options when loading a diagram into a Diagram object.

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

loadOptions = new aspose.diagram.LoadOptions(aspose.diagram.LoadFileFormat.VSX);
vsxDiagram = new aspose.diagram.Diagram("LoadSaveConvert.vsx", loadOptions);

Constructor Summary
LoadOptions()
Initializes a new instance of this class with default values.
LoadOptions(format)
Initializes a new instance of this class with the format specified.
 
Property Getters/Setters Summary
methodgetFontConfigs()
method
           Gets and sets individual font configs. Only works for the Diagram which uses this LoadOptions to load.
methodgetInterruptMonitor()
method
           Gets and sets the interrupt monitor.
methodgetLoadFilter()
method
           The filter to denote how to load data.
methodgetLoadFormat()
method
           Specifies the format of the diagram to be loaded. Default is LoadFileFormat. Read/write LoadFileFormat. The value of the property is LoadFileFormat integer constant.
methodgetLocale()
method
setLocale(value)
           Gets and sets the Locale used for diagram at the time the file was loaded.
methodgetPages()
method
setPages(value)
           Specifies the index of the pages to be loaded.
 

    • Constructor Detail

      • LoadOptions

        LoadOptions()
        Initializes a new instance of this class with default values. Default file format is set as LoadFileFormat.
      • LoadOptions

        LoadOptions(format)
        Initializes a new instance of this class with the format specified.
        Parameters:
        format: int - A LoadFileFormat value. LoadFileFormat load file format.
    • Property Getters/Setters Detail

      • getLoadFormat/setLoadFormat : int 

        int getLoadFormat() / setLoadFormat(value)
        
        Specifies the format of the diagram to be loaded. Default is LoadFileFormat. Read/write LoadFileFormat. The value of the property is LoadFileFormat integer constant.
      • getPages/setPages : ArrayList 

        ArrayList getPages() / setPages(value)
        
        Specifies the index of the pages to be loaded.
      • getLoadFilter/setLoadFilter : LoadFilter 

        LoadFilter getLoadFilter() / setLoadFilter(value)
        
        The filter to denote how to load data.
      • getLocale/setLocale : Locale 

        Locale getLocale() / setLocale(value)
        
        Gets and sets the Locale used for diagram at the time the file was loaded.