Esempio n. 1
0
        public void TestBookmarks()
        {
            HWPFDocument doc       = HWPFTestDataSamples.OpenSampleFile("pageref.doc");
            Bookmarks    bookmarks = doc.GetBookmarks();

            Assert.AreEqual(1, bookmarks.Count);

            Bookmark bookmark = bookmarks.GetBookmark(0);

            Assert.AreEqual("userref", bookmark.Name);
            Assert.AreEqual(27, bookmark.Start);
            Assert.AreEqual(38, bookmark.End);
        }