Read Shape's User-Defined Cells in PHP
Contents
[
Hide
]
Aspose.Diagram - Read Shape’s User-Defined Cells
To Read Shape’s User-Defined Cells using Aspose.Diagram Java for PHP, simply invoke ReadUserDefinedCells module. Here you can see example code.
PHP Code
# Create instance of Diagram
$diagram = new Diagram($dataDir . "drawing.vdx");
$shapes = $diagram->getPages()->getPage("Flow 1")->getShapes();
$i = 0;
while($i<(int)(string)$shapes->getCount()) {
$shape=$shapes->get($i);
if($shape->getNameU()=="Process") {
$users = $shape->getUsers();
$j = 0;
while ($j<(int)(string)$users->getCount()) {
$user = $users->get($j);
print $user->getName() . ": " . $user->getValue()->getVal();
$j += 1;
}
break;
}
$i+=1;
}
Download Running Code
Download Read Shape’s User-Defined Cells (Aspose.Diagram) from any of the below mentioned social coding sites: