# Bundle<T> class

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

```cs
public sealed class Bundle<T>
```

Represents a bundle of UI controls, ie. objects that are associated with each other and may share certain visual properties. For example, bundled sliders will synchronise the width of their grips so they look more in tune with each other.

**Type parameters:**

- `T` (where IBundleAware)

## Constructors

- [Bundle<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/ctor.md): Create a new bundle wrapped aroud a single object.

## Properties

- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/count.md): Gets the number of sliders in this bundle.
- [Objects](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/objects.md): Enumerate over all objects in this bundle.

## Methods

- [Associate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/associate.md): (2 overloads) Associate two bundles.
- [Disassociate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/disassociate.md): Disassociate a slider from this bundle.
- [DisassociateAll](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/disassociateall.md): Disassociate all sliders in this bundle.
- [Union](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.bundle-1/union.md): (3 overloads) Compute the float union of all bundled objects.
