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
System.Object
CharIterator
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public class CharIterator : IDisposable

Methods

Current()

Gets the current CharData value

Declaration
public CharData Current()
Returns
Type Description
CharData

current Unicode value

Dispose()

Releases all resources used by the CharIterator

Declaration
public override sealed void Dispose()

Dispose(Boolean)

Declaration
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
Parameters
Type Name Description
System.Boolean A_0

Equals(Object)

checks if this CharData object is the same as the given object

Declaration
public bool Equals(object o)
Parameters
Type Name Description
System.Object o

a given object

Returns
Type Description
System.Boolean

true if equals to the give object

Finalize()

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

Declaration
protected void Finalize()

HasNext()

Determines if the iteration has more elements.

Declaration
public bool HasNext()
Returns
Type Description
System.Boolean

Returns true if the iteration has more elements.

Next()

Iterates to the next object in the iteration

Declaration
public void Next()

Operators

Equality(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
System.Boolean

true if both objects are equal

Inequality(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
System.Boolean

true if both objects are not equal

Implements

System.IDisposable
Back to top Generated by DocFX