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));
            }
        }