# ContentSet class

Namespace: [Grasshopper2.UI.ContentBrowser](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.contentbrowser.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class ContentSet
```

A collection of content to be displayed in a content browser.

## Constructors

- [ContentSet](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/ctor.md)

## Properties

- [Items](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/items.md)

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/add.md): (2 overloads)
- [Clear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/clear.md): Remove every item from every section. Raises [ContentSet.ItemsChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/itemschanged.md) once if anything was removed.
- [Replace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/replace.md): Atomically replace the entire set of items. Items with an unknown chapter are silently dropped. Raises [ContentSet.ItemsChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/itemschanged.md) exactly once at the end, regardless of how many items were added or removed.

## Events

- [ItemsChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.contentbrowser.contentset/itemschanged.md)
