public CellQueryResults <string> GetFormulas(SurfaceTarget surface, IList <int> shapeids) { var srcstream = this._build_sidsrc_stream(shapeids); var values = surface.GetFormulasU(srcstream); var reader = new Internal.ArraySegmentReader <string>(values); var rows = this._shapesid_to_rows(shapeids, reader); var cellqueryresults = new CellQueryResults <string>(rows.Count); cellqueryresults.AddRange(rows); return(cellqueryresults); }
public CellQueryResults <TResult> GetResults <TResult>(SurfaceTarget surface, IList <int> shapeids) { var srcstream = this._build_sidsrc_stream(shapeids); const object[] unitcodes = null; var values = surface.GetResults <TResult>(srcstream, unitcodes); var reader = new Internal.ArraySegmentReader <TResult>(values); var rows = this._shapesid_to_rows(shapeids, reader); var cellqueryresults = new CellQueryResults <TResult>(rows.Count); cellqueryresults.AddRange(rows); return(cellqueryresults); }