Click or drag to resize
Pdf Library for .NET

PdfBookmarksCollection Methods

The PdfBookmarksCollection type exposes the following members.

Methods
 NameDescription
Public methodCode exampleAdd(String, PdfDestination) Adds a new bookmark to the bookmarks collection.
Public methodAdd(String, Int32) Convenience overload — adds a new bookmark that targets the specified page at its top-left corner.
Public methodAdd(String, Int32, Single, Single) Convenience overload — adds a new bookmark that targets a specific position on a specific page.
Public methodClearRemoves all bookmarks from this collection.
Public methodGetEnumeratorReturns an enumerator that iterates over the top-level bookmarks in this collection.
Public methodCode exampleInsert(Int32, String, PdfDestination) Creates a new bookmark and inserts it at the specified zero based index in the bookmarks collection.
Public methodInsert(Int32, String, Int32) Convenience overload — inserts a new bookmark at the specified index targeting the specified page at its top-left corner.
Public methodInsert(Int32, String, Int32, Single, Single) Convenience overload — inserts a new bookmark at the specified index targeting a specific position on a specific page.
Public methodRemove(PdfBookmark)Removes the specified pdf bookmark.
Public methodRemove(String)Removes the first bookmark in this collection whose text matches the given string.
Public methodRemoveAtRemoves the pdf bookmark at the specified index in the bookmarks collection.
Top
See Also