# GH_NumberPresets class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_NumberPresets
```

Maintains a collection of presets for use in numeric GUI.

## Properties

- [Count](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numberpresets/count.md): Gets the number of presets stored in this class.

## Methods

- [AddPreset](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numberpresets/addpreset.md): (4 overloads) Add a new preset to the collection.
- [PopulateMenu](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numberpresets/populatemenu.md): (2 overloads) Populate a menu with the presets. Preset values will be stored as Decimals in the Tag of the menu items.
- [PresetDescription](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numberpresets/presetdescription.md): Gets the preset description at the given index.
- [PresetName](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numberpresets/presetname.md): Gets the preset name at the given index.
- [PresetValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-numberpresets/presetvalue.md): Gets the preset at the given index.
