Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("AddingNewShape.vsdx"); // get page by name page = diagram.getPages().getPage("Page-3"); for (it = page.getShapes().iterator(); it.hasNext();) { shape = it.next(); if (shape.getName() == "Process1") { prop = shape.getProps().getProp("Name1"); console.log(prop.getLabel().getValue() + ": " + prop.getValue().getVal()); } }
Property Getters/Setters Summary | ||
---|---|---|
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(item) | |
Add the Prop object in the collection. | ||
function | clear() | → inherited from Collection |
Removes all elements from collection. | ||
function | getProp(ID) | |
Gets the element at the specified ID. | ||
function | getProp(name) | |
Gets the element at the specified name. | ||
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(item) | |
Remove the Prop object from the collection. |
Property Getters/Setters Detail |
---|
getCount : Number | |
function getCount() |
get : Prop | |
function get(index) |
index
- Method Detail |
---|
add | |
function add(item) |
remove | |
function remove(item) |
getProp | |
function getProp(ID) |
ID: Number
- getProp | |
function getProp(name) |
name: String
- iterator | |
function iterator() |
isExist | |
function isExist(index) |
index: Number
- index of element.clear | |
function clear() |