Click or drag to resize

PdfBookmarkVisitor Class

PdfBookmarkVisitor is a utility class that can be used to visit each PdfBookmark contained in a PdfBookmarkTree. The tree can be visited either depth first or breadth first. The order of node visit in either breadth or depth first is undefined and subject to change.
Examples
Print each element in the tree in breadth first order.
foreach (PdfBookmarkResult result in new PdfBookmarkVisitor(tree, false)) {
    Console.WriteLine(result.Bookmark.Text);
}
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDocPdfBookmarkVisitor

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class PdfBookmarkVisitor : IEnumerable<PdfBookmarkResult>, 
	IEnumerable

The PdfBookmarkVisitor type exposes the following members.

Constructors
  NameDescription
Public methodPdfBookmarkVisitor(PdfBookmarkTree, Boolean)
Initializes a new instance of the PdfBookmarkVisitor class.
Public methodPdfBookmarkVisitor(PdfBookmarkTree, Boolean, PdfBookmarkVisitorPredicate)
Initializes a new instance of the PdfBookmarkVisitor class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetParent
Gets the parent PdfBookmark of a given child PdfBookmark if any. Returns if the child has no parent or is not contained within the given tree.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also