Show / Hide Table of Contents

# Class FieldIterator

FieldIterator is an iterator type that can be used to traverse a list form fields in a PDF document. For more information, please PDFDoc.getFieldIterator().

##### Inheritance

object
FieldIterator

##### Implements

IDisposable

##### Inherited Members

object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public class FieldIterator : IDisposable

### Methods

#### Current()

Get the current `Field` object

##### Declaration

    public Field Current()

##### Returns

Type | Description
--- | ---
Field | current `Field` object

#### Dispose()

Releases all resources used by the FieldIterator

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected virtual void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### Equals(object)

Determines if equals to the given object

##### Declaration

    public bool Equals(object o)

##### Parameters

Type | Name | Description
--- | --- | ---
object | o | given object

##### Returns

Type | Description
--- | ---
bool | true if equals to the given object

#### ~FieldIterator()

Allows a FieldIterator to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

##### Declaration

    protected ~FieldIterator()

#### HasNext()

Determines if the iteration has more elements.

##### Declaration

    public bool HasNext()

##### Returns

Type | Description
--- | ---
bool | true if the iteration has more elements.

#### Next()

iterates to the next object

##### Declaration

    public void Next()

### Operators

#### operator ==(FieldIterator, FieldIterator)

Equality operator check whether two FieldIterator objects are the same

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
FieldIterator | l | a `Field` iterator object on the left of the operator
FieldIterator | r | a `Field` iterator object on the right of the operator

##### Returns

Type | Description
--- | ---
bool | true, if both objects are equal

#### operator !=(FieldIterator, FieldIterator)

Inequality operator checks whether two FieldIterator objects are different

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
FieldIterator | l | a `Field` iterator object on the left of the operator
FieldIterator | r | a `Field` iterator object on the right of the operator

##### Returns

Type | Description
--- | ---
bool | true, if both objects are not equal

### Implements

IDisposable