# CustomPalette class

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

```cs
public sealed class CustomPalette
```

Provides a system-wide square grid of colours the user is allowed to specify.

## Constructors

- [CustomPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/ctor.md): (2 overloads) Create a new custom palette, populated with the system-wise settings.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/bounds.md): Gets the bounds of this palette. This field gets assigned during drawing operations.
- [Columns](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/columns.md): Gets the number of columns in this palette.
- [DefaultEntries](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/defaultentries.md): (static) Gets the default entries.
- [DefaultSize](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/defaultsize.md): (static) Gets the default width and height for custom palettes.
- [Rows](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/rows.md): Gets the number of rows in this palette.
- [SpecifiedEntries](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/specifiedentries.md): Enumerate over all specified entries.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/item.md): Gets the entry at the specified row and column.

## Methods

- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/draw.md): Draw this palette into a rectangle.
- [EntryAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/entryat.md): (2 overloads) Gets the entry underneath the given point.
- [PaletteIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.custompalette/paletteicon.md): (static) Gets the icon for the custom palette.
