Class DictIterator
DictIterator is used to traverse key-value pairs in a dictionary.
DictIterator itr = dict.getDictIterator();
while (itr.hasNext()) {
Obj key = itr.key();
printf(key.getName());
Obj value = itr.value();
//...
itr.next()
}
}
Namespace: pdftron.SDF
Assembly: PDFTronDotNet.dll
Syntax
public class DictIterator : IDisposable
Methods
Destroy()
Declaration
public void Destroy()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Equals(Object)
checks if equals to the specified DictIterator
object
Declaration
public override bool Equals(object rhs)
Parameters
Type | Name | Description |
---|---|---|
System.Object | rhs | specified |
Returns
Type | Description |
---|---|
System.Boolean | true if both are equal |
Finalize()
Releases all resources used by the DictIterator
Declaration
protected void Finalize()
HasNext()
Checks for next.
Declaration
public bool HasNext()
Returns
Type | Description |
---|---|
System.Boolean | true if the iterator can be successfully advanced to the next element; false if the end collection is reached. |
Exceptions
Type | Condition |
---|---|
PDFNetException | PDFNetException the PDFNet exception |
Key()
Key
Declaration
public Obj Key()
Returns
Type | Description |
---|---|
Obj | key of the current dictionary entry |
Exceptions
Type | Condition |
---|---|
PDFNetException | PDFNetException the PDFNet exception |
Next()
Advances the iterator to the next element of the collection.
Declaration
public void Next()
Exceptions
Type | Condition |
---|---|
PDFNetException | PDFNetException the PDFNet exception |
op_Assign(DictIterator)
Assignment operator
Declaration
public DictIterator op_Assign(DictIterator rhs)
Parameters
Type | Name | Description |
---|---|---|
DictIterator | rhs |
|
Returns
Type | Description |
---|---|
DictIterator |
|
Set(DictIterator)
Sets value to the specified DictIterator
Declaration
public void Set(DictIterator p)
Parameters
Type | Name | Description |
---|---|---|
DictIterator | p | another |
Value()
Value
Declaration
public Obj Value()
Returns
Type | Description |
---|---|
Obj | value of the current dictionary entry |
Exceptions
Type | Condition |
---|---|
PDFNetException | PDFNetException the PDFNet exception |
Operators
Equality(DictIterator, DictIterator)
Equality operator checks whether two DictIterator
objects are the same.
Declaration
public static bool operator ==(DictIterator lhs, DictIterator rhs)
Parameters
Type | Name | Description |
---|---|---|
DictIterator | lhs |
|
DictIterator | rhs |
|
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are equal, false otherwise |
Inequality(DictIterator, DictIterator)
Inequality operator checks whether two DictIterator
objects are different.
Declaration
public static bool operator !=(DictIterator lhs, DictIterator rhs)
Parameters
Type | Name | Description |
---|---|---|
DictIterator | lhs |
|
DictIterator | rhs |
|
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are not equal, false otherwise |