Show / Hide Table of Contents

# Class ContentNodeIterator

ContentNodeIterator is an iterator type that can be used to traverse children of a ContentNode.

##### Inheritance

object
Iterator<ContentElement>
ContentNodeIterator

##### Implements

IDisposable

##### Inherited Members

Iterator<ContentElement>.Dispose()
Iterator<ContentElement>.Dispose(bool)
Iterator<ContentElement>.Next()
Iterator<ContentElement>.HasNext()
Iterator<ContentElement>.op_Assign(Iterator<ContentElement>)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.Layout

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class ContentNodeIterator : Iterator<ContentElement>, IDisposable

### Methods

#### Current()

Gets the current `ContentNode` object

##### Declaration

    public override ContentElement Current()

##### Returns

Type | Description
--- | ---
ContentElement | current `ContentNode` object

##### Overrides

Iterator<ContentElement>.Current()

#### Equals(object)

Checks whether this `ContentNodeIterator` is the same as the specified 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 given object

#### Set(ContentNodeIterator)

Sets value to the given `ContentNodeIterator` object

##### Declaration

    public void Set(ContentNodeIterator p)

##### Parameters

Type | Name | Description
--- | --- | ---
ContentNodeIterator | p | given `ContentNodeIterator` object

### Operators

#### operator ==(ContentNodeIterator, ContentNodeIterator)

Equality operator checks whether two `ContentNodeIterator` objects are the same.

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
ContentNodeIterator | l | a `ContentNodeIterator` at the left of the operator
ContentNodeIterator | r | a `ContentNodeIterator` at the right of the operator

##### Returns

Type | Description
--- | ---
bool | true, if both `ContentNodeIterator` are equal

#### operator !=(ContentNodeIterator, ContentNodeIterator)

Inequality operator checks whether two `ContentNodeIterator` objects are different.

##### Declaration

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

##### Parameters

Type | Name | Description
--- | --- | ---
ContentNodeIterator | l | a `ContentNodeIterator` at the left of the operator
ContentNodeIterator | r | a `ContentNodeIterator` at the right of the operator

##### Returns

Type | Description
--- | ---
bool | true, if both `ContentNodeIterator` are not equal

### Implements

IDisposable