# RenderContentCollection 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 RenderContentCollection : IDisposable, IEnumerable<RenderContent>
```

A collection of Render content

## Constructors

- [RenderContentCollection](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/ctor.md): (2 overloads) Construct an empty collection of RenderContent objects

## Finalizer

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

## Properties

- [CppPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/cpppointer.md): Internal function to get native pointer

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/add.md): Add an array of non-const contents to the collection.
- [Append](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/append.md): Append a RenderContent to the collection
- [Clear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/clear.md): Clear the collection.
- [ContentAt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/contentat.md): Content at index
- [ContentNeedsPreviewThumbnail](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/contentneedspreviewthumbnail.md): To be documented
- [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/count.md): The number of items in the collection.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/dispose.md): Dispose function for RenderContentCollection
- [Find_Sel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/find-sel.md): TODO
- [FirstTag](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/firsttag.md): Gets the first tag
- [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/getenumerator.md): Enumerates the contents in the collection. This makes it possible to use the collection directly in a foreach loop instead of manually driving a [ContentCollectionIterator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.contentcollectioniterator.md): `foreach (RenderContent content in collection) { ... }` The collection also implements IEnumerable<RenderContent>, so LINQ can be used on it directly. Note that this method returns the non-generic enumerator for backwards compatibility, which is why the loop variable above is declared as RenderContent rather than var.
- [GetFilterContentByUsage](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/getfiltercontentbyusage.md): Gets usage filter type for collection
- [GetForcedVaries](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/getforcedvaries.md): See SetForcedVaries
- [GetSearchPattern](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/getsearchpattern.md): See SetSearchPattern
- [Iterator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/iterator.md): Gets an iterator for the collection
- [NextTag](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/nexttag.md): Call FirstTag first - this gets the next tag
- [Remove](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/remove.md): Remove an array of contents from the collection.
- [Set](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/set.md): Set an array of const contents as the collection.
- [SetForcedVaries](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/setforcedvaries.md): Set the collection to 'varies'. Only valid if the collection is a 'selection' collection. Useful for clients that only support single content selections.
- [SetSearchPattern](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/setsearchpattern.md): Sets a search pattern for filtering contents. This is not actually used by the iterator, but is stored for use by any UI that wants to filter contents based on a search string by using the function RhRdkCheckSearchPattern()
- [IEnumerable<RenderContent>.GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.rendercontentcollection/system-collections-generic-ienumerable-rhino-render-rendercontent-getenumerator.md)
