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 | ||
|---|---|---|
method | getCount() | |
method | get(index) | |
| Method Summary | ||
|---|---|---|
method | add(item) | |
Add the Prop object in the collection.
|
||
method | clear() | |
method | getProp(ID) | |
Gets the element at the specified ID.
|
||
method | getProp(name) | |
Gets the element at the specified name.
|
||
method | iterator() | |
Reserved for internal use. |
||
method | remove(item) | |
Remove the Prop object from the collection.
|
||
method | removeAt(index) | |
int add(item)
remove(item)
Prop getProp(ID)
ID: int - Prop getProp(name)
name: String - clear()
removeAt(index)
Iterator iterator()