コード例 #1
0
        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();
        }
コード例 #2
0
 protected override void SetPageCells(PageLayoutFormulas pagecells)
 {
     base.SetPageCells(pagecells);
     pagecells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceCircular;
 }
コード例 #3
0
 protected override void SetPageCells(PageLayoutFormulas pagecells)
 {
     base.SetPageCells(pagecells);
     pagecells.PlaceStyle = (int)CompactTreeLayout.GetPlaceStyle(this.Direction);
 }
コード例 #4
0
 protected override void SetPageCells(PageLayoutFormulas pagecells)
 {
     base.SetPageCells(pagecells);
     pagecells.PlaceStyle = (int)HierarchyLayout.GetPlaceStyle(this.Direction, this.HorizontalAlignment, this.VerticalAlignment);
 }