Move Page Position in Visio Drawing using C# and Java

Aspose.Diagram for .NET logo

We are pleased to announce that the new version 18.3 of Aspose.Diagram API is now live. The recent version 18.3 has added support of changing the position of Page in Visio drawings, and the export of the VSD to XPS has been improved. The recent version 18.3 also covers enhancements and regular bug fixes. We recommend our client to incorporate the latest upgrade of Aspose.Diagram API to take benefit of improved functionality and bug fixes. Please use the following links for downloading Aspose.Diagram for .NET and Java assemblies.

Move Page Position in Visio Diagrams

Developers can add a new page to the target page index, and they can also change the position of an existing page in the Visio drawing. Developers can change the position of the Page with MoveTo member of the Page class as follows:


// import diagram Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); Page newPage = new Page(1); // move page in the diagram 
newPage.MoveTo(2); diagram.Save(dataDir + "Drawing1.vsdx", SaveFileFormat.VSDX);


// import diagramDiagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
Page newPage = new Page(1);// move page in the diagram
newPage.moveTo(2); + "Drawing1.vsdx", SaveFileFormat.VSDX);

Aspose.Diagram for .NET and Java Resources

The following resources will help you work with Aspose.Diagram for .NET: