Working with Shapes Paragraph
Contents
[
Hide
]
The code below shows how to:
- Load a sample file.
- Access a particular shape.
- Set shape’s paragraph.
Set shape’s Paragraph Programming Sample
Use the following code in your Java application to set shape’s paragraph using Aspose.Diagram for Java.
// 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);