protected static 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 cells = row_to_object(data_for_shape.Cells); return(cells); }
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); }
public static IList <T> _GetCells <T, RT>( IVisio.Shape shape, VAQUERY.CellQuery query, RowToObject <T, RT> row_to_object) { CellGroupMultiRow.check_query(query); var data_for_shape = query.GetCellData <RT>(shape); var sec = data_for_shape.Sections[0]; var sec_objects = CellGroupMultiRow.SectionToObjectList(sec, row_to_object); return(sec_objects); }
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); }
protected static IList <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 data_for_shapes = query.GetFormulasAndResults <RT>(new VA.Drawing.DrawingSurface(page), 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); }
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); }
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); }
public static IList <List <T> > _GetCells <T, RT>( IVisio.Page page, IList <int> shapeids, VAQUERY.CellQuery query, RowToObject <T, RT> row_to_object) { CellGroupMultiRow.check_query(query); var list = new List <List <T> >(shapeids.Count); var surface = new ShapeSheetSurface(page); var data_for_shapes = query.GetCellData <RT>(surface, shapeids); foreach (var data_for_shape in data_for_shapes) { var sec = data_for_shape.Sections[0]; var sec_objects = CellGroupMultiRow.SectionToObjectList(sec, row_to_object); list.Add(sec_objects); } return(list); }
private static List <T> SectionToObjectList <T, RT>(VAQUERY.SectionResult <CellData <RT> > sec, RowToObject <T, RT> row_to_object) { int num_rows = sec.Count; var sec_objects = new List <T>(num_rows); foreach (var row in sec) { var obj = row_to_object(row); sec_objects.Add(obj); } return(sec_objects); }
public void SetRowToObject(RowToObject rowToObject) { this.rowToObject = rowToObject; }