Click or drag to resize

DictIterator Class

DictIterator is used to traverse key-value pairs in a dictionary.
Inheritance Hierarchy
SystemObject
  pdftron.SDFDictIterator

Namespace:  pdftron.SDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class DictIterator : IClosable

The DictIterator type exposes the following members.

Methods
  NameDescription
Public methodClose
Public methodEquals
Checks if this DictIterator is equals to the specified DictIterator object.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasNext
Checks for the next element.
Public methodKey
Gets the key.
Public methodNext
Advances the iterator to the next element of the collection.
Public methodSet
Sets value to the specified DictIterator.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValue
Gets the value.
Top
Examples
DictIterator can be used to print out all the entries in a given Obj dictionary as follows:
DictIterator itr = dict.GetDictIterator();
while (itr.HasNext()) {
    Obj key = itr.Key();
    printf(key.GetName());
    Obj value = itr.Value();
    // ...
    itr.Next();
}
See Also