Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
 protected override void SetPageCells(PageCells pagecells)
 {
     base.SetPageCells(pagecells);
     pagecells.PlaceStyle = (int) IVisio.VisCellVals.visPLOPlaceDefault;
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 9
0
 protected override void SetPageCells(PageCells pagecells)
 {
     base.SetPageCells(pagecells);
     pagecells.PlaceStyle = (int)IVisio.VisCellVals.visPLOPlaceCircular;
 }
Ejemplo n.º 10
0
 protected override void SetPageCells(PageCells pagecells)
 {
     base.SetPageCells(pagecells);
     pagecells.PlaceStyle = (int)CompactTreeLayout.GetPlaceStyle(this.Direction);
 }