Class BookmarksCollection
- Namespace
- EvoPdf
- Assembly
- evohtmltopdf.dll
Represents a collection of bookmarks of a document.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class BookmarksCollection : IEnumerable
- Inheritance
-
BookmarksCollection
- Implements
- Inherited Members
Properties
Count
The number of bookmarks in this PDF bookmarks collection
public int Count { get; }
Property Value
Document
The parent document of this collection
public Document Document { get; }
Property Value
this[int]
Gets the bookmark at the specified zero based index in the bookmarks collection.
public Bookmark this[int bookmarkIndex] { get; }
Parameters
bookmarkIndex
intThe zero based bookmark index in the collection.
Property Value
- Bookmark
The PDF bookmark at the specified index
Methods
AddNewBookmark(string, ExplicitDestination)
Adds a new bookmark to the collection.
public Bookmark AddNewBookmark(string text, ExplicitDestination destination)
Parameters
text
stringThe bookmark text.
destination
ExplicitDestinationThe bookmark destination.
Returns
- Bookmark
The newly created PDF bookmark.
GetEnumerator()
Gets the collection enumerator.
public IEnumerator GetEnumerator()
Returns
- IEnumerator
The collection enumerator.
InsertNewBookmark(int, string, ExplicitDestination)
Creates a new bookmark and inserts it at the specified zero based position index in collection.
public Bookmark InsertNewBookmark(int positionIndex, string text, ExplicitDestination destination)
Parameters
positionIndex
intThe zero based position index where to insert the bookmark.
text
stringThe bookmark text.
destination
ExplicitDestinationThe bookmark destination.
Returns
- Bookmark
The newly created PDF bookmark.
Remove(Bookmark)
Removes the specified PDF bookmark.
public void Remove(Bookmark bookmark)
Parameters
bookmark
BookmarkThe PDF bookmark to be removed.
Remove(int)
Removes the PDF bookmark at the specified index in collection.
public void Remove(int bookmarkIndex)
Parameters
bookmarkIndex
intThe zero based index of the PDF bookmark to be removed.
RemoveAll()
Removes all the bookmarks from collection
public void RemoveAll()