Working with Shapes Paragraph

The code below shows how to:

  1. Load a sample file.
  2. Access a particular shape.
  3. 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);