protected static T _GetCells <T, RT>( IVisio.Shape shape, Query.CellQuery query, RowToObject <T, RT> row_to_object) { CellGroup.check_query(query); var data_for_shape = query.GetCellData <RT>(shape); var cells = row_to_object(data_for_shape.Cells); return(cells); }
protected static IList <T> _GetCells <T, RT>( IVisio.Page page, IList <int> shapeids, Query.CellQuery query, RowToObject <T, RT> row_to_object) { CellGroup.check_query(query); var surface = new ShapeSheetSurface(page); var data_for_shapes = query.GetCellData <RT>(surface, shapeids); var list = new List <T>(shapeids.Count); foreach (var data_for_shape in data_for_shapes) { var cells = row_to_object(data_for_shape.Cells); list.Add(cells); } return(list); }