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
Implements
Inherited Members
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 |
CharIterator | r | the |
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 |
CharIterator | r | the |
Returns
Type | Description |
---|---|
System.Boolean | true if both objects are not equal |