public static IList <T> _GetCells <T, RT>( IVisio.Shape shape, VA.ShapeSheet.Query.CellQuery query, RowToObject <T, RT> row_to_object) { check_query(query); var data_for_shape = query.GetFormulasAndResults <RT>(shape); var sec = data_for_shape.SectionCells[0]; var sec_objects = SectionToObjectList(sec, row_to_object); return(sec_objects); }
public static IList <List <T> > _GetCells <T, RT>( IVisio.Page page, IList <int> shapeids, VA.ShapeSheet.Query.CellQuery query, RowToObject <T, RT> row_to_object) { check_query(query); var list = new List <List <T> >(shapeids.Count); var data_for_shapes = query.GetFormulasAndResults <RT>(new VA.Drawing.DrawingSurface(page), shapeids); foreach (var data_for_shape in data_for_shapes) { var sec = data_for_shape.SectionCells[0]; var sec_objects = SectionToObjectList(sec, row_to_object); list.Add(sec_objects); } return(list); }