protected CellGroupBuilder(CellGroupBuilderType type)
        {
            var temp_cells = new TGroup();

            Query.Columns cols;

            this.Type = type;
            if (type == CellGroupBuilderType.SingleRow)
            {
                this.query_cells_singlerow = new Query.CellQuery();
                cols = this.query_cells_singlerow.Columns;
            }
            else if (type == CellGroupBuilderType.MultiRow)
            {
                this.query_sections_multirow = new Query.SectionQuery();
                cols = this.query_sections_multirow.Add(temp_cells.CellMetadata.First().Src);
            }
            else
            {
                throw new Exceptions.InternalAssertionException();
            }

            foreach (var pair in temp_cells.CellMetadata)
            {
                cols.Add(pair.Src, pair.Name);
            }
        }
        private Query.SectionQueryResults <string> __GetCells(Query.SectionQuery query, IVisio.Page page, ShapeIDPairs shapeidpairs, CellValueType type)
        {
            var surface = new SurfaceTarget(page);

            if (type == CellValueType.Formula)
            {
                return(query.GetFormulas(surface, shapeidpairs));
            }
            else
            {
                return(query.GetResults <string>(surface, shapeidpairs));
            }
        }
        private Query.SectionQueryShapeResults <string> __GetCells(Query.SectionQuery query, IVisio.Shape shape, CellValueType type)
        {
            var surface = new SurfaceTarget(shape);

            if (type == CellValueType.Formula)
            {
                return(query.GetFormulas(surface));
            }
            else
            {
                return(query.GetResults <string>(surface));
            }
        }
 private CellGroupBuilder()
 {
     this.query_cells_singlerow   = null;
     this.query_sections_multirow = null;
 }