NameTree Class |
Namespace: pdftron.SDF
public sealed class NameTree : IClosable
The NameTree type exposes the following members.
Name | Description | |
---|---|---|
NameTree |
Create a high level NameTree wrapper around an existing SDF/Cos NameTree.
This does not copy the object.
|
Name | Description | |
---|---|---|
Close | ||
Create |
Retrieves the NameTree inside the '/Root/Names' dictionary with the specified key name, or creates it
if it does not exist.
| |
Equals | (Inherited from Object.) | |
Erase(Byte) |
Removes the specified object from the tree. Does nothing if no object with that name exists.
| |
Erase(NameTreeIterator) |
Removes the NameTree entry pointed by the iterator.
| |
Find |
Retrieves a name tree, with the given key name, from the '/Root/Names' dictionary of the doc.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetIterator |
Gets the iterator.
| |
GetIterator(Byte) |
Search for the specified key in the NameTree.
| |
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 NameTree is valid.
| |
Put |
Puts a new entry in the name tree. If an entry with this key is already in the tree, it is replaced.
| |
Set |
Sets value to the specified NameTree | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
PDFDoc doc = new PDFDoc("../Data/PDFReference.pdf"); NameTree dests = NameTree.Find(doc.GetSDFDoc(), "Dests"); if (dests.IsValid()) { // Traversing the NameTree for (DictIterator i = dests.GetIterator(); i.HasNext(); i.Next()) string key = i.Key().GetAsPDFText(); // ... }