Show / Hide Table of Contents

# Class GSChangesIterator

GSChangesIterator is an iterator type that can be used to traverse a list of changes in the graphics state between subsequnet graphical elements on the page. For a sample use case, please take a look at ElementReaderAdv sample project.

##### Inheritance

object
GSChangesIterator

##### 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 GSChangesIterator : IDisposable

### Methods

#### Current()

Gets the current `GStateAttribute` value

##### Declaration

    public GState.GStateAttribute Current()

##### Returns

Type | Description
--- | ---
GState.GStateAttribute | current Unicode value

#### Dispose()

Releases all resources used by the GSChangesIterator

##### 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)

Checks whether this GSChangesIterator is the same as the given 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 give object

#### ~GSChangesIterator()

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

##### Declaration

    protected ~GSChangesIterator()

#### HasNext()

Determines if the iteration has more elements.

##### Declaration

    public bool HasNext()

##### Returns

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

#### Next()

Iterates to the next object in the iteration

##### Declaration

    public void Next()

### Operators

#### operator ==(GSChangesIterator, GSChangesIterator)

Equality operator checks whether two `GSChangesIterator` are the same

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
GSChangesIterator | l | the `GSChangesIterator` on the left of the operator
GSChangesIterator | r | the `GSChangesIterator` on the right of the operator

##### Returns

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

#### operator !=(GSChangesIterator, GSChangesIterator)

Inequality operator checks whether two `GSChangesIterator` are different

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
GSChangesIterator | l | the `GSChangesIterator` on the left of the operator
GSChangesIterator | r | the `GSChangesIterator` on the right of the operator

##### Returns

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

### Implements

IDisposable