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