コード例 #1
0
        public void PasteFormat(IVisio.Page page, IList <int> shapeids, FormatCategory category, bool applyformulas)
        {
            var update = new VA.ShapeSheet.Update();

            foreach (var shape_id in shapeids)
            {
                foreach (var cellrec in this.Cells)
                {
                    if (!cellrec.MatchesCategory(category))
                    {
                        continue;
                    }

                    var sidsrc = new VA.ShapeSheet.SIDSRC((short)shape_id, cellrec.SRC);

                    if (applyformulas)
                    {
                        update.SetFormula(sidsrc, cellrec.Formula);
                    }
                    else
                    {
                        if (cellrec.Result != null)
                        {
                            update.SetFormula(sidsrc, cellrec.Result);
                        }
                    }
                }
            }

            update.Execute(page);
        }
コード例 #2
0
        public void PasteFormat(IVisio.Page page, IList<int> shapeids, FormatCategory category, bool applyformulas)
        {
            var update = new VA.ShapeSheet.Update();

            foreach (var shape_id in shapeids)
            {
                foreach (var cellrec in this.Cells)
                {
                    if (!cellrec.MatchesCategory(category))
                    {
                        continue;
                    }

                    var sidsrc = new VA.ShapeSheet.SIDSRC((short)shape_id, cellrec.SRC);

                    if (applyformulas)
                    {
                        update.SetFormula(sidsrc, cellrec.Formula);

                    }
                    else
                    {
                        if (cellrec.Result != null)
                        {
                            update.SetFormula(sidsrc, cellrec.Result);
                        }
                    }
                }
            }

            update.Execute(page);
        }
コード例 #3
0
        public void SetResult(short id, VA.ShapeSheet.SRC src, string result)
        {
            var sidsrc = new VA.ShapeSheet.SIDSRC(id, src);

            this.update.SetResult(sidsrc, result, IVisio.VisUnitCodes.visNumber);
        }
コード例 #4
0
        public void SetFormula(short id, VA.ShapeSheet.SRC src, string formula)
        {
            var sidsrc = new VA.ShapeSheet.SIDSRC(id, src);

            this.update.SetFormula(sidsrc, formula);
        }
コード例 #5
0
 public void SetResult(short id, VA.ShapeSheet.SRC src, string result)
 {
     var sidsrc = new VA.ShapeSheet.SIDSRC(id, src);
     this.update.SetResult(sidsrc, result, IVisio.VisUnitCodes.visNumber);
 }
コード例 #6
0
 public void SetFormula(short id, VA.ShapeSheet.SRC src, string formula)
 {
     var sidsrc = new VA.ShapeSheet.SIDSRC(id, src);
     this.update.SetFormula(sidsrc, formula);
 }
コード例 #7
0
        public void SetFormulaIgnoreNull(short id, ShapeSheet.SRC src, ShapeSheet.FormulaLiteral formula)
        {
            var sidsrc = new VA.ShapeSheet.SIDSRC(id, src);

            this._SetFormulaIgnoreNull(StreamType.SIDSRC, sidsrc, formula);
        }