# NamedPalette class

Namespace: [Grasshopper2.Types.Colour](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.colour.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class NamedPalette : IStorable
```

Represents a collection of uniquely named colours. Think of this as a colour dictionary.

## Constructors

- [NamedPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/ctor.md): (3 overloads) Create a new empty palette.

## Fields

- [OpenColorPaletteName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/opencolorpalettename.md): (static) Gets the official name of the [NamedPalette.OpenColorPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/opencolorpalette.md).
- [StandardCorePaletteName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/standardcorepalettename.md): (static) Gets the official name of the [NamedPalette.StandardCorePalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/standardcorepalette.md).
- [StandardFullPaletteName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/standardfullpalettename.md): (static) Gets the official name of the [NamedPalette.StandardFullPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/standardfullpalette.md).
- [X11PaletteName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/x11palettename.md): (static) Gets the official name of the [NamedPalette.X11Palette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/x11palette.md).

## Properties

- [Colours](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/colours.md): Enumerate over all colours in this palette.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/count.md): Gets the number of colours stored in this palette.
- [EmptyPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/emptypalette.md): (static) Create an 'empty' palette containing only Black and White.
- [KnownPaletteNames](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/knownpalettenames.md): (static) Iterate over all known palette names.
- [OpenColorPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/opencolorpalette.md): (static) Create the standard open-color palette.
- [StandardCorePalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/standardcorepalette.md): (static) Create the standard Grasshopper colour palette containing only the principal colours.
- [StandardFullPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/standardfullpalette.md): (static) Create the standard Grasshopper colour palette, including all secondary colours.
- [X11Palette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/x11palette.md): (static) Create a palette containing the standard web palette.

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/add.md): Add a colour to this palette.
- [AddToRhinoDocument](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/addtorhinodocument.md): Insert this palette into a Rhino document as a set of dots.
- [CanReplace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/canreplace.md): Resolve whether a specific name can be replaced with another without name collisions. If the oldName hasn't been defined yet, replacement is considered to be possible.
- [Compose](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/compose.md): Compose a colour based on some textual description.
- [ContainsName](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/containsname.md): Gets whether a specific name has already been defined.
- [Describe](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/describe.md): (2 overloads) Describe a colour as the most similar named colour.
- [FilterImportance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/filterimportance.md): Create a new palette containing only the colours that match the given importance.
- [Find](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/find.md): (3 overloads) Find the colour closest to the given one.
- [FindFuzzy](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/findfuzzy.md): Find the best match name.
- [FindIdentical](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/findidentical.md): Find all identical colours.
- [FindSimilar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/findsimilar.md): Find all similar colours (but not any identical colours).
- [ImpliedPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/impliedpalette.md): (static) Gets the palette implied by the name. If no matching palette can be found, null will be returned.
- [Merge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/merge.md): (2 overloads, static) Merge a collection of palettes.
- [ReadFromFile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/readfromfile.md): (static) Read a palette from a file.
- [ReadFromStrings](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/readfromstrings.md): (static) Deserialize a colour palette from an array of strings.
- [Remove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/remove.md): Remove a colour from this palette.
- [Replace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/replace.md): (2 overloads) Replace a colour in this palette.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/store.md): This method is called whenever the instance is required to serialize itself.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/tostring.md): Returns a string that represents the current object.
- [WriteToFile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/writetofile.md): (static) Write a palette to a file.
- [WriteToStrings](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette/writetostrings.md): (static) Serialize this palette to an array of strings.
