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 | ||
|---|---|---|
method | getClientHeight() | |
method | setClientHeight(value) | |
| Optional int. | ||
method | getClientWidth() | |
method | setClientWidth(value) | |
| Optional int. | ||
method | getCount() | |
Gets the number of elements actually contained in the collection.
|
||
method | get(index) | |
Gets the element at the specified index.
|
||
| Method Summary | ||
|---|---|---|
method | add(window) | |
Add the window in the collection.
|
||
method | clear() | |
Removes all elements from collection.
|
||
method | isExist(index) | |
Is exist item in the collection.
|
||
method | iterator() | |
Supports a simple iteration over a nongeneric collection.
|
||
method | remove(window) | |
Remove the window from the collection.
|
||
int getClientWidth() / setClientWidth(value)
int getClientHeight() / setClientHeight(value)
int getCount()
int add(window)
window: Window - remove(window)
window: Window - Iterator iterator()
boolean isExist(index)
index: int - index of element.clear()