在 PHP 中添加对动态网格和连接点的支持
Contents
[
Hide
]
Aspose.Diagram - 添加对动态网格和连接点的支持
要添加对动态网格和连接点的支持,请使用Aspose.Diagram Java 用于 PHP 只需调用添加动态网格和连接点模块。在这里您可以看到示例代码。
PHP代码
# Create instance of Diagram
$diagram = new Diagram($dataDir."Drawing.vsd");
\# get window object by index
$window=$diagram->getWindows()->get(0);
\# check dynamic grid option
$window->setDynamicGridEnabled(1);
\# check connection points option
$window->setShowConnectionPoints(1);
\# Save as VDX
$saveFileFormat=new SaveFileFormat();
$diagram->save($dataDir."AddDynamicGridsAndConnectionPoints.vsx", $saveFileFormat->VSX);
print "Added Support of Dynamic Grids and Connection Points in the Visio Drawings.".PHP_EOL;
下载运行代码
下载**添加对动态网格和连接点的支持 (Aspose.Diagram)**来自以下任何社交编码网站: