Show / Hide Table of Contents

# Class FDFFieldIterator

FDFFieldIterator is an iterator type used to traverse interactive form fields in a FDF document. A FDFFieldIterator points to FDF.FDFField nodes or to the `null` FDFField node.

##### Inheritance

object
Iterator<FDFField>
FDFFieldIterator

##### Implements

IDisposable

##### Inherited Members

Iterator<FDFField>.Dispose()
Iterator<FDFField>.Dispose(bool)
Iterator<FDFField>.Next()
Iterator<FDFField>.HasNext()
Iterator<FDFField>.op_Assign(Iterator<FDFField>)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.FDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class FDFFieldIterator : Iterator<FDFField>, IDisposable

##### Examples

A sample use case:

    for(FDFFieldIterator itr = fdf_doc.getFieldIterator(); itr.hasNext(); itr.next()) {
    Field name: itr.current().getName();
    Field partial name: itr.current().getPartialName();
    }

### Methods

#### Current()

get the current FDFFieldIterator

##### Declaration

    public override FDFField Current()

##### Returns

Type | Description
--- | ---
FDFField | current `FDFField` object

##### Overrides

Iterator<FDFField>.Current()

#### Equals(object)

check if equals to another `FDFFieldIterator`

##### Declaration

    public bool Equals(object o)

##### Parameters

Type | Name | Description
--- | --- | ---
object | o | another `FDFFieldIterator` to compare to

##### Returns

Type | Description
--- | ---
bool | true if equals to another `FDFFieldIterator`. false, otherwise.

### Operators

#### operator ==(FDFFieldIterator, FDFFieldIterator)

check if two `FDFFieldIterator` are equal

##### Declaration

    public static bool operator ==(FDFFieldIterator l, FDFFieldIterator r)

##### Parameters

Type | Name | Description
--- | --- | ---
FDFFieldIterator | l | a `FDFFieldIterator` object
FDFFieldIterator | r | another `FDFFieldIterator` object

##### Returns

Type | Description
--- | ---
bool | true, if both are equal. false, otherwise.

#### operator !=(FDFFieldIterator, FDFFieldIterator)

check if two `FDFFieldIterator` are not equal

##### Declaration

    public static bool operator !=(FDFFieldIterator l, FDFFieldIterator r)

##### Parameters

Type | Name | Description
--- | --- | ---
FDFFieldIterator | l | a `FDFFieldIterator` object
FDFFieldIterator | r | another `FDFFieldIterator` object

##### Returns

Type | Description
--- | ---
bool | false, if both are equal. true, otherwise.

### Implements

IDisposable