aspose.diagram
Class PropCollection

Prop collection.

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
functiongetCount()
           Gets the number of elements actually contained in the collection.
functionget(index)
           Gets the element at the specified index.
 
Method Summary
functionadd(item)
           Add the Prop object in the collection.
functionclear()→ inherited from Collection
           Removes all elements from collection.
functiongetProp(ID)
           Gets the element at the specified ID.
functiongetProp(name)
           Gets the element at the specified name.
functionisExist(index)→ inherited from Collection
           Is exist item in the collection.
functioniterator()→ inherited from Collection
           Supports a simple iteration over a nongeneric collection.
functionremove(item)
           Remove the Prop object from the collection.
 

Property Getters/Setters Detail

getCount : Number 

function getCount()
Gets the number of elements actually contained in the collection.

get : Prop 

function get(index)
Gets the element at the specified index.
Parameters:
index -
Returns:

Method Detail

add

function add(item)
Add the Prop object in the collection.
Returns:

remove

function remove(item)
Remove the Prop object from the collection.

getProp

function getProp(ID)
Gets the element at the specified ID.
Parameters:
ID: Number -
Returns:

getProp

function getProp(name)
Gets the element at the specified name.
Parameters:
name: String -
Returns:

iterator

function iterator()
Supports a simple iteration over a nongeneric collection.
Returns:

isExist

function isExist(index)
Is exist item in the collection.
Parameters:
index: Number - index of element.
Returns:

clear

function clear()
Removes all elements from collection.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.