aspose.diagram
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
functiongetClientHeight()
functionsetClientHeight(value)
           Optional int.
functiongetClientWidth()
functionsetClientWidth(value)
           Optional int.
functiongetCount()
           Gets the number of elements actually contained in the collection.
functionget(index)
           Gets the element at the specified index.
 
Method Summary
functionadd(window)
           Add the window in the collection.
functionclear()→ inherited from Collection
           Removes all elements from collection.
functionisExist(index)→ inherited from Collection
           Is exist item in the collection.
functioniterator()→ inherited from Collection
           Supports a simple iteration over a nongeneric collection.
functionremove(window)
           Remove the window from the collection.
 

Property Getters/Setters Detail

getClientWidth/setClientWidth : Number 

function getClientWidth() / function setClientWidth(value)
Optional int.

getClientHeight/setClientHeight : Number 

function getClientHeight() / function setClientHeight(value)
Optional int.

getCount : Number 

function getCount()
Gets the number of elements actually contained in the collection.

get : Window 

function get(index)
Gets the element at the specified index.
Parameters:
index -
Returns:

Method Detail

add

function add(window)
Add the window in the collection.
Parameters:
window: Window -
Returns:

remove

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

iterator

function iterator()
Supports a simple iteration over a nongeneric collection.
Returns:

isExist

function isExist(index)
Is exist item in the collection.
Parameters:
index: Number - index of element.
Returns:

clear

function clear()
Removes all elements from collection.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.