在 PHP 中选择连接器形状的重新路由选项
Contents
[
Hide
]
Aspose.Diagram - 选择连接器形状的重新布线选项
要选择连接器形状的重新布线选项,请使用Aspose.Diagram Java 红宝石 只需调用选择重新路由选项模块。在这里您可以看到示例代码。
PHP代码
# Create instance of Diagram
$diagram=new Diagram($dataDir."Drawing.vsd");
\# Access a particular page
$page=$diagram->getPages()->getPage("Flow 1");
\# get a particular connector shape
$shape=$page->getShapes()->getShape(1);
\# set reroute option
$conFixedCodeValue=new ConFixedCodeValue();
$shape->getLayout()->getConFixedCode()->setValue($conFixedCodeValue->NEVER_REROUTE);
\# Save diagram
$saveFileFormat=new SaveFileFormat();
$diagram->save($dataDir."SelectRerouteOption.vdx", $saveFileFormat->VDX);
print "Seleted reroute option of the connector shape.".PHP_EOL;
下载运行代码
下载**选择连接器形状的重新布线选项 (Aspose.Diagram)**来自以下任何社交编码网站: