Show / Hide Table of Contents

# Class CharIterator

CharIterator is an iterator type that can be used to traverse CharData in the current e_text element. For a sample use case, please take a look at ElementReaderAdv sample project.

##### Inheritance

object
Iterator<CharData>
CharIterator

##### Implements

IDisposable

##### Inherited Members

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

### Methods

#### Current()

Gets the current `CharData` value

##### Declaration

    public override CharData Current()

##### Returns

Type | Description
--- | ---
CharData | current Unicode value

##### Overrides

Iterator<CharData>.Current()

#### Equals(object)

checks if this CharData object 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 ==(CharIterator, CharIterator)

Equality operator checks whether two CharData objects are the same

##### Declaration

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

##### Parameters

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

##### Returns

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

#### operator !=(CharIterator, CharIterator)

Inequality operator checks whether two CharData objects are different

##### Declaration

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

##### Parameters

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

##### Returns

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

### Implements

IDisposable