private Query.CellQueryResults <string> __GetCells(Query.CellQuery query, IVisio.Page page, IList <int> shapeids, CellValueType type)
        {
            var surface = new SurfaceTarget(page);

            if (type == CellValueType.Formula)
            {
                return(query.GetFormulas(surface, shapeids));
            }
            else
            {
                return(query.GetResults <string>(surface, shapeids));
            }
        }
        private Query.CellQueryResults <string> __GetCells(Query.CellQuery 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));
            }
        }