public void Apply(IVisio.Page page) { var pagecells = new PageCells(); this.SetPageCells(pagecells); var update = new ShapeSheet.Update(); update.SetFormulas(pagecells); var pagesheet = page.PageSheet; update.Execute(pagesheet); page.Layout(); }
protected virtual void SetPageCells(PageCells pagecells) { pagecells.AvenueSizeX = this.AvenueSize.Width; pagecells.AvenueSizeY = this.AvenueSize.Height; pagecells.LineRouteExt = (int) Layout.ConnectorAppearanceToLineRouteExt(this.ConnectorAppearance); var rs = this.ConnectorsStyleToRouteStyle(); if (rs.HasValue) { pagecells.RouteStyle = (int) rs.Value; } }
protected virtual void SetPageCells(PageCells pagecells) { pagecells.AvenueSizeX = this.AvenueSize.Width; pagecells.AvenueSizeY = this.AvenueSize.Height; pagecells.LineRouteExt = (int)Layout.ConnectorAppearanceToLineRouteExt(this.ConnectorAppearance); var rs = this.ConnectorsStyleToRouteStyle(); if (rs.HasValue) { pagecells.RouteStyle = (int)rs.Value; } }
protected override void SetPageCells(PageCells pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int) IVisio.VisCellVals.visPLOPlaceDefault; }
protected override void SetPageCells(PageCells pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int)HierarchyLayout.GetPlaceStyle(this.Direction, this.HorizontalAlignment, this.VerticalAlignment); }
protected override void SetPageCells(PageCells pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int) HierarchyLayout.GetPlaceStyle(this.Direction, this.HorizontalAlignment, this.VerticalAlignment); }
protected override void SetPageCells(PageCells pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int) CompactTreeLayout.GetPlaceStyle(this.Direction); }
protected override void SetPageCells(PageCells pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceCircular; }
protected override void SetPageCells(PageCells pagecells) { base.SetPageCells(pagecells); pagecells.PlaceStyle = (int)CompactTreeLayout.GetPlaceStyle(this.Direction); }