NumberTree Class |
Namespace: pdftron.SDF
public sealed class NumberTree : IClosable
The NumberTree type exposes the following members.
| Name | Description | |
|---|---|---|
| NumberTree |
Create a high level NumberTree wrapper around an existing SDF/Cos NumberTree.
This does not copy the object.
|
| Name | Description | |
|---|---|---|
| Close | ||
| Equals | (Inherited from Object.) | |
| Erase(Int32) |
Removes the specified object from the tree. Does nothing if no object with that number exists.
| |
| Erase(NumberTreeIterator) |
Removes the NumberTree entry pointed by the iterator.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetIterator |
Gets the iterator.
| |
| GetIterator(Int32) |
Search for the specified key in the NumberTree.
| |
| GetSDFObj |
Gets the SDFObj.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValue |
Gets a value that is associated with the given key.
| |
| IsValid |
Checks if this NumberTree is valid.
| |
| Put |
Puts a new entry in the name tree. If an entry with this number is already in the tree, it is replaced.
| |
| Set |
Sets value to the specified NumberTree.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
PDFDoc doc = new PDFDoc("../Data/test.pdf"); NumberTree labels = doc.GetRoot().Get("PageLabels").Value()); if (labels.IsValid()) { // Traversing the NumberTree for (NumberTreeIterator i = labels.GetIterator(); i.HasNext(); i.Next()) num = i.Key().GetNumber(); }