public static UserDefinedCellDictionary GetCellsAsDictionary(IVisio.Shape shape, VASS.CellValueType type)
        {
            var pairs = __GetPairs(shape, type);
            var dic   = UserDefinedCellDictionary.FromPairs(pairs);

            return(dic);
        }
Exemple #2
0
        internal static UserDefinedCellDictionary FromPairs(List <UserDefinedCellNameCellsPair> pairs)

        {
            var dic = new UserDefinedCellDictionary(pairs.Count);

            foreach (var pair in pairs)
            {
                dic[pair.Name] = pair.Cells;
            }
            return(dic);
        }
        public static List <UserDefinedCellDictionary> GetCellsAsDictionary(IVisio.Page page, ShapeIDPairs shapeidpairs, VASS.CellValueType type)
        {
            int num_shapes     = shapeidpairs.Count;
            var list_list_pair = __GetPairs(page, shapeidpairs, type);

            var list_dic = new List <UserDefinedCellDictionary>(num_shapes);
            var dics     = list_list_pair.Select(list_pair => UserDefinedCellDictionary.FromPairs(list_pair));

            list_dic.AddRange(dics);

            return(list_dic);
        }