Show / Hide Table of Contents

# Class PageIterator

PageIterator is an iterator type that can be used to traverse a list pages in a PDF document. For more information, please PDFDoc.GetPageIterator().

##### Inheritance

object
Iterator<Page>
PageIterator

##### Implements

IDisposable

##### Inherited Members

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

###### Namespace: pdftron.PDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class PageIterator : Iterator<Page>, IDisposable

### Methods

#### Current()

Gets the current `Page` object

##### Declaration

    public override Page Current()

##### Returns

Type | Description
--- | ---
Page | current `Page` object

##### Overrides

Iterator<Page>.Current()

#### Equals(object)

Checks whether this `PageIterator` is the same as the specified object.

##### Declaration

    public bool Equals(object o)

##### Parameters

Type | Name | Description
--- | --- | ---
object | o | a given `Object`

##### Returns

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

#### GetPageNumber()

Gets the page number

##### Declaration

    public int GetPageNumber()

##### Returns

Type | Description
--- | ---
int | page number

#### Set(PageIterator)

Sets value to the given `PageIterator` object

##### Declaration

    public void Set(PageIterator p)

##### Parameters

Type | Name | Description
--- | --- | ---
PageIterator | p | given `PageIterator` object

### Operators

#### operator ==(PageIterator, PageIterator)

Equality operator checks whether two `PageIterator` objects are the same.

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
PageIterator | l | a `PageIterator` at the left of the operator
PageIterator | r | a `PageIterator` at the right of the operator

##### Returns

Type | Description
--- | ---
bool | true, if both `PageIterator` are equal

#### operator !=(PageIterator, PageIterator)

Inequality operator checks whether two `PageIterator` objects are different.

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
PageIterator | l | a `PageIterator` at the left of the operator
PageIterator | r | a `PageIterator` at the right of the operator

##### Returns

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

### Implements

IDisposable