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
Iterator<GState.GStateAttribute>
GSChangesIterator

##### Implements

IDisposable

##### Inherited Members

Iterator<GState.GStateAttribute>.Dispose()
Iterator<GState.GStateAttribute>.Dispose(bool)
Iterator<GState.GStateAttribute>.Next()
Iterator<GState.GStateAttribute>.HasNext()
Iterator<GState.GStateAttribute>.op_Assign(Iterator<GState.GStateAttribute>)
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 GSChangesIterator : Iterator<GState.GStateAttribute>, IDisposable

### Methods

#### Current()

Gets the current `GStateAttribute` value

##### Declaration

    public override GState.GStateAttribute Current()

##### Returns

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

##### Overrides

Iterator<GState.GStateAttribute>.Current()

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

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