# PresetPickerObject.PresetCollection class

Namespace: [Grasshopper2.Parameters.Special](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.parameters.special.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class PresetPickerObject.PresetCollection : IEquatable<PresetPickerObject.PresetCollection>
```

A collection of all non-conflicting presets as defined by all targets of the picker object, including any collision error messages.

## Properties

- [Fallback](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/fallback.md): Gets the preset names harvested from the output parameter persistent data.
- [Messages](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/messages.md): All preset collision error messages.
- [Outputs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/outputs.md): All the output parameter IDs associated with this state.
- [Presets](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/presets.md): All presets harvested from all outputs.

## Methods

- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/equals.md): (2 overloads)
- [Get](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/get.md): (2 overloads) Gets the preset as implied by the index. If the index exceeds valid array indices, it will be projected back onto the valid domain.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/gethashcode.md)
- [IndexOf](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/indexof.md): Gets the index of the preset with the given name, or -1 if the name is not recognised.
- [IsStillValid](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.presetpickerobject.presetcollection/isstillvalid.md): Gets whether this state is still valid given the current context of the picker.
