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); }
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); }
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); }
public void SetFormula(short id, VA.ShapeSheet.SRC src, string formula) { var sidsrc = new VA.ShapeSheet.SIDSRC(id, src); this.update.SetFormula(sidsrc, formula); }
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); }