public void Apply(IVisio.Page page) { var pagecells = new PageLayoutFormulas(); this.SetPageCells(pagecells); var writer = new VisioAutomation.ShapeSheet.Writers.SrcWriter(); writer.SetFormula(VisioAutomation.ShapeSheet.SrcConstants.PageLayoutAvenueSizeX, pagecells.AvenueSizeX); writer.SetFormula(VisioAutomation.ShapeSheet.SrcConstants.PageLayoutAvenueSizeY, pagecells.AvenueSizeY); writer.SetFormula(VisioAutomation.ShapeSheet.SrcConstants.PageLayoutLineRouteExt, pagecells.LineRouteExt); writer.SetFormula(VisioAutomation.ShapeSheet.SrcConstants.PageLayoutRouteStyle, pagecells.RouteStyle); writer.SetFormula(VisioAutomation.ShapeSheet.SrcConstants.PageLayoutPlaceStyle, pagecells.PlaceStyle); writer.Commit(page.PageSheet); page.Layout(); }
protected override void SetPageCells(PageLayoutFormulas pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceCircular; }
protected override void SetPageCells(PageLayoutFormulas pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int)CompactTreeLayout.GetPlaceStyle(this.Direction); }
protected override void SetPageCells(PageLayoutFormulas pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int)HierarchyLayout.GetPlaceStyle(this.Direction, this.HorizontalAlignment, this.VerticalAlignment); }