---
title: "ColorPalette Members"
canonical: https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_ColorPalette.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ColorPalette Members
 
The [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) type exposes the following members.
 
## Constructors

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ColorPalette](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorPalette_ctor.htm.md) |  Overloaded. <br>Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance.<br><br>Creates and initializes new [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance. |
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [{dtor}](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_%7Bdtor%7D.htm.md) |  Enables using delete operator in C++ applications. It is strongly not recommended to use it directly. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Clone](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_Clone.htm.md) |  Creates a full copy of the palette. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Dispose](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_Dispose.htm.md) |  Releases all resources used by this [ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md).<br> (Overrides [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).[Dispose()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Dispose.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Equals](http://msdn2.microsoft.com/en-us/bsc2ak47) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Export](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_Export.htm.md) |  Exports the palette into array of [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) values. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [FindNearestIndex](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_FindNearestIndex_1_99a0633e.htm.md) |  Searches index of the color closest to given one. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetEnumerator](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_GetEnumerator.htm.md) |  Returns an enumerator for the palette entries allowing it to be used in **foreach** blocks. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetHashCode](http://msdn2.microsoft.com/en-us/zdee4b3y) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [GetType](http://msdn2.microsoft.com/en-us/dfwy45w9) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Import](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_Import_1_3508ff56.htm.md) |  Imports the palette from array of [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) values. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Lock](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Lock.htm.md) |  Locks the object.<br> (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 |  ![Protected method](https://www.graphicsmill.com/docs/gm5/icons/protmethod.gif) |  [MemberwiseClone](http://msdn2.microsoft.com/en-us/57ctke0a) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [SetColorKey](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorPalette_SetColorKey.htm.md) |  Overloaded. <br>Makes palette entry. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ToGdiplusColorPalette](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_ToGdiplusColorPalette.htm.md) |  Converts current palette to [System.Drawing.Imaging.ColorPalette](http://msdn2.microsoft.com/en-us/t15ybftc) class which can be used in native .NET drawing classes. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [ToString](http://msdn2.microsoft.com/en-us/7bxwbwt2) |  (Inherited from [Object](http://msdn2.microsoft.com/en-us/e5kfa45b).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gm5/icons/pubmethod.gif) |  [Unlock](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Unlock.htm.md) |  Unlocks the object previously locked with method [Lock()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_LockableObject_Lock.htm.md).<br> (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 
## Operators

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public operator](https://www.graphicsmill.com/docs/gm5/icons/puboperator.gif) ![Static member](https://www.graphicsmill.com/docs/gm5/icons/static.gif) |  [Implicit](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorPalette_op_Implicit.htm.md) |  Overloaded. <br>Casts this [Aurigma.GraphicsMill.ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md) class instance to [System.Drawing.Imaging.ColorPalette](http://msdn2.microsoft.com/en-us/t15ybftc) or vice versa. |
 
## Properties

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [Count](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_Count.htm.md) |  Returns a number of colors in the palette. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [HasAlpha](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_HasAlpha.htm.md) |  Indicates if palette support transparency. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [IsDisposed](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_LockableObject_IsDisposed.htm.md) |  (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [Item](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_Item_1_e1836fc4.htm.md) |  Gets/sets palette entry by index. |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [Locked](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_LockableObject_Locked.htm.md) |  Indicates if the object has been locked.<br> (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [Timeout](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_LockableObject_Timeout.htm.md) |  Gets/sets value specifying maximum time for which object can be locked.<br> (Inherited from [LockableObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_LockableObject.htm.md).) |
 |  ![Public property](https://www.graphicsmill.com/docs/gm5/icons/pubproperty.gif) |  [Type](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_Type.htm.md) |  Indicates how palette was created - either as some predefined palette or custom one. |
   
## See Also

### Reference

- [ColorPalette Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
