Show / Hide Table of Contents

# Class ContentNodeIterator

ContentNodeIterator is an iterator type that can be used to traverse the children of a content node object.

##### Inheritance

object
ContentNodeIterator

##### Implements

IDisposable

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.Layout

###### Assembly: PDFNet.dll

##### Syntax

    public class ContentNodeIterator : IDisposable

### Methods

#### Current()

Gets the current ContentElement object

##### Declaration

    public ContentElement Current()

##### Returns

Type | Description
--- | ---
ContentElement |

#### Dispose()

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected virtual void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### ~ContentNodeIterator()

##### Declaration

    protected ~ContentNodeIterator()

#### HasNext()

Determine if true if the iteration has more elements.

##### Declaration

    public bool HasNext()

##### Returns

Type | Description
--- | ---
bool | true if the iteration has more elements.

#### Next()

iterates to next ContentElement object

##### Declaration

    public void Next()

#### Set(ContentNodeIterator)

Sets value to the given ContentNodeIterator object

##### Declaration

    public void Set(ContentNodeIterator p)

##### Parameters

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

### Implements

IDisposable