Пример #1
0
        protected virtual void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
        {
            page_layout_cells.AvenueSizeX  = this.AvenueSizeX;
            page_layout_cells.AvenueSizeY  = this.AvenueSizeY;
            page_layout_cells.LineRouteExt = (int)LayoutStyleBase._connector_appearance_to_line_route_ext(this.ConnectorAppearance);

            var rs = this.ConnectorsStyleToRouteStyle();

            if (rs.HasValue)
            {
                page_layout_cells.RouteStyle = (int)rs.Value;
            }
        }
Пример #2
0
        public void Apply(IVisio.Page page)
        {
            var page_layout_cells = new VisioAutomation.Pages.PageLayoutCells();

            this.SetPageCells(page_layout_cells);

            var writer = new VisioAutomation.ShapeSheet.Writers.SrcWriter();

            writer.SetValues(page_layout_cells);

            writer.CommitFormulas(page.PageSheet);
            page.Layout();
        }
Пример #3
0
        protected virtual void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
        {
            page_layout_cells.AvenueSizeX  = this.AvenueSize.Width;
            page_layout_cells.AvenueSizeY  = this.AvenueSize.Height;
            page_layout_cells.LineRouteExt = (int)LayoutBase.ConnectorAppearanceToLineRouteExt(this.ConnectorAppearance);

            var rs = this.ConnectorsStyleToRouteStyle();

            if (rs.HasValue)
            {
                page_layout_cells.RouteStyle = (int)rs.Value;
            }
        }
Пример #4
0
 protected override void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
 {
     base.SetPageCells(page_layout_cells);
     page_layout_cells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceCircular;
 }
Пример #5
0
 protected override void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
 {
     base.SetPageCells(page_layout_cells);
     page_layout_cells.PlaceStyle = (int)CompactTreeLayout.GetPlaceStyle(this.Direction);
 }
Пример #6
0
 protected override void _set_page_cells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
 {
     base._set_page_cells(page_layout_cells);
     page_layout_cells.PlaceStyle = (int)FlowchartLayoutStyle._get_place_style(this.LayoutDirection);
 }
Пример #7
0
 protected override void _set_page_cells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
 {
     base._set_page_cells(page_layout_cells);
     page_layout_cells.PlaceStyle = (int)CompactTreeLayout._get_place_style(this.Direction);
 }
Пример #8
0
 protected override void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
 {
     base.SetPageCells(page_layout_cells);
     page_layout_cells.PlaceStyle = (int)HierarchyLayout.GetPlaceStyle(this.LayoutDirection, this.HorizontalAlignment, this.VerticalAlignment);
 }
Пример #9
0
 protected override void _set_page_cells(VisioAutomation.Pages.PageLayoutCells page_layout_cells)
 {
     base._set_page_cells(page_layout_cells);
     page_layout_cells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceDefault;
 }