asposediagram.api

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
methodgetCount()
methodget(index)
 
Method Summary
methodadd(item)
Add the Prop object in the collection.
methodclear()
methodgetProp(ID)
Gets the element at the specified ID.
methodgetProp(name)
Gets the element at the specified name.
methoditerator()
Reserved for internal use.
methodremove(item)
Remove the Prop object from the collection.
methodremoveAt(index)
 

    • Property Getters/Setters Detail

      • getCount : int 

        int getCount()
        
    • Method Detail

      • add

        int add(item)
        Add the Prop object in the collection.
        Returns:
      • remove

         remove(item)
        Remove the Prop object from the collection.
      • getProp

        Prop getProp(ID)
        Gets the element at the specified ID.
        Parameters:
        ID: int -
        Returns:
      • getProp

        Prop getProp(name)
        Gets the element at the specified name.
        Parameters:
        name: String -
        Returns:
      • clear

         clear()
      • removeAt

         removeAt(index)
      • iterator

        Iterator iterator()
        Reserved for internal use.