Retrieve Window Elements from the Visio Drawing in PHP
Contents
[
Hide
]
Aspose.Diagram - Retrieve Window Elements from the Visio Drawing
To Retrieve Window Elements from the Visio Drawing using Aspose.Diagram Java for PHP, simply invoke GetWindowElements module. Here you can see example code.
PHP Code
# Create instance of Diagram
$diagram = new Diagram($dataDir."Drawing.vsd");
$windows=$diagram->getWindows();
$i = 0;
while ($i<(int)(string)$windows->getCount()) {
$window=$windows->get($i);
print "ID: ".(string)$window->getID();
print "Type: ".(string)$window->getWindowType();
print "Window height: ".(string)$window->getWindowHeight();
print "Window width: ".(string)$window->getWindowWidth();
print"Window state: ".(string)$window->getWindowState();
$i+= 1;
}
Download Running Code
Download Retrieve Window Elements from the Visio Drawing (Aspose.Diagram) from any of the below mentioned social coding sites: