Rotate Visio Shape Text

Creating a Diagram

Aspose.Diagram for .NET lets you read and create Microsoft Visio diagrams from within your own applications, without Microsoft Office Automation. The first step when creating new documents, is to create a diagram. Then add shapes and connectors to build up the diagram. Use the default constructor of Diagram class to create a new diagram.

Programming Sample

This example work as follows:

  1. Create an object of the Diagram class.
  2. Get paticular page
  3. Get paticular shape
  4. Get Shape text and rotate the text
  5. Call Save method of the Diagram class object and also pass complete file path and the DiagramSaveOptions object.

Rotate text Programming Sample

The following example code shows how to rotate text in the Visio diagram.