TIP: Visio Auto Layout from C#
Wednesday, May 4th, 2005I couldn’t find this anywhere on the web, and needed some help from Visio team to figure it out, so here it is. If you want to get your shapes to layout using left-to-right flowchart format, use the CellsU property on the pagesheet:
Document doc = app.Documents.Add(””);Page page = doc.Pages[1];page.PageSheet.get_CellsU(”PlaceStyle”).FormulaU = “2″;page.PageSheet.get_CellsU(”RouteStyle”).FormulaU = “6″;// code to […]