public QueryResultList <string> GetFormulas(VA.Drawing.DrawingSurface surface, IList <int> shapeids) { this.Freeze(); var srcstream = BuildSIDSRCStream(surface, shapeids); var values = surface.GetFormulasU_4(srcstream); var list = FillValuesForMultipleShapes(shapeids, values); return(list); }
public QueryResultList <CellData <T> > GetFormulasAndResults <T>(VA.Drawing.DrawingSurface surface, IList <int> shapeids) { this.Freeze(); var srcstream = BuildSIDSRCStream(surface, shapeids); var unitcodes = this.BuildUnitCodeArray(shapeids.Count); T[] results = surface.GetResults_4 <T>(srcstream, unitcodes); string[] formulas = surface.GetFormulasU_4(srcstream); // Merge the results and formulas var combined_data = new CellData <T> [results.Length]; for (int i = 0; i < results.Length; i++) { combined_data[i] = new CellData <T>(formulas[i], results[i]); } var r = FillValuesForMultipleShapes(shapeids, combined_data); return(r); }