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()
Gets the number of elements actually contained in the collection.
methodget(index)
Gets the element at the specified index.
 
Method Summary
methodadd(window)
Add the window in the collection.
methodclear()
Removes all elements from collection.
methodisExist(index)
Is exist item in the collection.
methoditerator()
Supports a simple iteration over a nongeneric collection.
methodremove(window)
Remove the window from the collection.
 

    • 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()
        
        Gets the number of elements actually contained in the collection.
      • get : Window 

        Window get(index)
        
        Gets the element at the specified index.
        Parameters:
        index -
        Returns:
    • 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 -
      • iterator

        Iterator iterator()
        Supports a simple iteration over a nongeneric collection.
        Returns:
      • isExist

        boolean isExist(index)
        Is exist item in the collection.
        Parameters:
        index: int - index of element.
        Returns:
      • clear

         clear()
        Removes all elements from collection.