示例#1
0
        private PdfBookmarkCollection GetAll(IEnumerable <PdfBookmark> bookmarks)
        {
            PdfBookmarkCollection result = new PdfBookmarkCollection();

            foreach (var item in bookmarks)
            {
                result.Add(item);
                result.AddRange(GetAll(item.Children));
            }

            return(result);
        }