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; } }
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(); }
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; } }
protected override void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells) { base.SetPageCells(page_layout_cells); page_layout_cells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceCircular; }
protected override void SetPageCells(VisioAutomation.Pages.PageLayoutCells page_layout_cells) { base.SetPageCells(page_layout_cells); page_layout_cells.PlaceStyle = (int)CompactTreeLayout.GetPlaceStyle(this.Direction); }
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); }
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); }
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); }
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; }