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() | |
Gets the number of elements actually contained in the collection.
|
||
method | get(index) | |
Gets the element at the specified index.
|
Method Summary | ||
---|---|---|
method | add(item) | |
Add the Prop object in the collection.
|
||
method | clear() | |
Removes all elements from collection.
|
||
method | getProp(ID) | |
Gets the element at the specified ID.
|
||
method | getProp(name) | |
Gets the element at the specified name.
|
||
method | isExist(index) | |
Is exist item in the collection.
|
||
method | iterator() | |
Supports a simple iteration over a nongeneric collection.
|
||
method | remove(item) | |
Remove the Prop object from the collection.
|
int getCount()
int add(item)
remove(item)
Prop getProp(ID)
ID: int
- Prop getProp(name)
name: String
- Iterator iterator()
boolean isExist(index)
index: int
- index of element.clear()