# ContentCollectionIterator class

Namespace: [Rhino.Render](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.render.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public sealed class ContentCollectionIterator : IDisposable, IEnumerable<RenderContent>
```

An iterator for the RenderContentCollection

## Constructors

- [ContentCollectionIterator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/ctor.md)

## Finalizer

- [~ContentCollectionIterator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/finalize.md): Finalizer

## Properties

- [CppPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/cpppointer.md)

## Methods

- [DeleteThis](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/deletethis.md): (obsolete)
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/dispose.md)
- [First](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/first.md)
- [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/getenumerator.md): Enumerates the contents, rewinding the iterator to the beginning first. This makes it possible to use the iterator in a foreach loop or with LINQ instead of manually calling First() and Next(). The iterator itself is not disposed by enumerating it, so it should still be wrapped in a 'using' statement, or the whole [RenderContentCollection](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection.md) can be enumerated directly instead.
- [Next](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/next.md)
- [IEnumerable.GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator/system-collections-ienumerable-getenumerator.md)
