使用形状段落
Contents
[
Hide
]
下面的代码显示了如何:
- 加载示例文件。
- 访问特定形状。
- 设置形状的段落。
设置形状的段落编程示例
在您的 Java 应用程序中使用以下代码,使用 Aspose.Diagram for Java 设置形状的段落。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(CreateNewVisio.class); | |
// initialize a Diagram class | |
Diagram diagram = new Diagram(); | |
// save diagram in the VSDX format | |
diagram.save(dataDir + "CreateNewVisio_Out.vsdx", SaveFileFormat.VSDX); |