asposediagram.api

Class WindowCollection

Window collection.

Example:

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

diagram = new aspose.diagram.Diagram("TextBoxes.vsdx");

// initialize window object
window = new aspose.diagram.Window();
// set window state
window.setWindowState(aspose.diagram.WindowStateValue.MAXIMIZED);
// set window height
window.setWindowHeight(500);
// set window width
window.setWindowWidth(500);
// set window type
window.setWindowType(aspose.diagram.WindowTypeValue.STENCIL);
// add window object
diagram.getWindows().add(window);

diagram.save("out-AddWindowElementInVisio.vsdx", aspose.diagram.SaveFileFormat.VSDX);

Property Getters/Setters Summary
methodgetClientHeight()
method
           Optional int.
methodgetClientWidth()
method
           Optional int.
methodgetCount()
methodget(index)
 
Method Summary
methodadd(window)
Add the window in the collection.
methodclear()
methoditerator()
Reserved for internal use.
methodremove(window)
Remove the window from the collection.
methodremoveAt(index)
 

    • Property Getters/Setters Detail

      • getClientWidth/setClientWidth : int 

        int getClientWidth() / setClientWidth(value)
        
        Optional int.
      • getClientHeight/setClientHeight : int 

        int getClientHeight() / setClientHeight(value)
        
        Optional int.
      • getCount : int 

        int getCount()
        
    • Method Detail

      • add

        int add(window)
        Add the window in the collection.
        Parameters:
        window: Window -
        Returns:
      • remove

         remove(window)
        Remove the window from the collection.
        Parameters:
        window: Window -
      • clear

         clear()
      • removeAt

         removeAt(index)
      • iterator

        Iterator iterator()
        Reserved for internal use.