public static ShapeIDPairs FromShapes(params IVisio.Shape[] shapes)
        {
            var shapeidpairs = new ShapeIDPairs(shapes.Length);

            shapeidpairs.AddRange(shapes.Select(s => new ShapeIDPair(s)));
            return(shapeidpairs);
        }
        public static ShapeIDPairs FromShapes(IList <IVisio.Shape> shapes)
        {
            var shapeidpairs = new ShapeIDPairs(shapes.Count);

            shapeidpairs.AddRange(shapes.Select(s => new ShapeIDPair(s)));
            return(shapeidpairs);
        }