Пример #1
0
        public void Finish()
        {
            var update = new VA.ShapeSheet.Update();

            foreach (var block in this.Blocks)
            {
                update.SetFormulas((short)block.VisioShapeID, block.FormatCells);
                update.SetFormulas((short)block.VisioShapeID, block.Textcells);
                update.SetFormulas((short)block.VisioShapeID, block.ParagraphCells, (short)0);
                update.SetFormulas((short)block.VisioShapeID, block.CharacterCells, (short)0);
            }
            update.Execute(this.page);
        }
Пример #2
0
        public IVisio.Page CreatePage(FormPage formpage)
        {
            this.FormPage = formpage;

            this.page      = this.VisioPages.Add();
            this.page.Name = formpage.Name;

            // Update the Page Cells
            var pagesheet  = page.PageSheet;
            var pageupdate = new VA.ShapeSheet.Update();

            var pagecells = new VA.Pages.PageCells();

            pagecells.PageWidth        = formpage.Size.Width;
            pagecells.PageHeight       = formpage.Size.Height;
            pagecells.PageLeftMargin   = formpage.Margin.Left;
            pagecells.PageRightMargin  = formpage.Margin.Right;
            pagecells.PageTopMargin    = formpage.Margin.Top;
            pagecells.PageBottomMargin = formpage.Margin.Bottom;
            pageupdate.SetFormulas(pagecells);
            pageupdate.Execute(pagesheet);


            this.Reset();
            return(this.page);
        }
Пример #3
0
        public static void Set(IVisio.Shape shape, short row, CustomPropertyCells cp)
        {
            if (shape == null)
            {
                throw new ArgumentNullException("shape");
            }

            var update = new VA.ShapeSheet.Update();

            update.SetFormulas(cp, row);
            update.Execute(shape);
        }
        public IVisio.Page CreatePage(FormPage formpage)
        {
            this.FormPage = formpage;

            this.page = this.VisioPages.Add();
            this.page.Name = formpage.Name;

            // Update the Page Cells
            var pagesheet = page.PageSheet;
            var pageupdate = new VA.ShapeSheet.Update();

            var pagecells = new VA.Pages.PageCells();
            pagecells.PageWidth = formpage.Size.Width;
            pagecells.PageHeight = formpage.Size.Height;
            pagecells.PageLeftMargin = formpage.Margin.Left;
            pagecells.PageRightMargin = formpage.Margin.Right;
            pagecells.PageTopMargin = formpage.Margin.Top;
            pagecells.PageBottomMargin = formpage.Margin.Bottom;
            pageupdate.SetFormulas(pagecells);
            pageupdate.Execute(pagesheet);

            this.Reset();
            return this.page;
        }
 public void Finish()
 {
     var update = new VA.ShapeSheet.Update();
     foreach (var block in this.Blocks)
     {
         update.SetFormulas((short)block.VisioShapeID,block.FormatCells);
         update.SetFormulas((short)block.VisioShapeID,block.Textcells);
         update.SetFormulas((short)block.VisioShapeID,block.ParagraphCells, (short)0);
         update.SetFormulas((short)block.VisioShapeID,block.CharacterCells, (short)0);
     }
     update.Execute(this.page);
 }
        public static void Set(IVisio.Shape shape, short row, CustomPropertyCells cp)
        {
            if (shape == null)
            {
                throw new ArgumentNullException("shape");
            }

            var update = new VA.ShapeSheet.Update();
            update.SetFormulas(cp, row);
            update.Execute(shape);
        }