# CompositionSlot class

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

```cs
public sealed class CompositionSlot
```

An indexed and organised collection of [CompositionItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionitem.md).

## Constructors

- [CompositionSlot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/ctor.md): Create a new slot.

## Properties

- [Index](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/index.md): Gets the index of this slot.
- [Items](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/items.md): Gets the items in this slot.

## Methods

- [Insert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/insert.md): Insert an item into this slot. Note that the [Nomen.Slot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen/slot.md) of the [CompositionItem.Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionitem/nomen.md) field must be identical to the [CompositionSlot.Index](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/index.md) of this [CompositionSlot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot.md).
- [Remove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/remove.md): Remove all indicated items from this slot.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.tabbedpanel.compositionslot/op-implicit.md): (static) Create a slot with a single item.
