---
title: "ColorPalette..::.Count Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_Count.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.Count Property 
 
Returns a number of colors in the palette.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public ReadOnly Property Count As Integer
```
 
```csharp
public int Count { get; }
```
 
### Property Value
Palette entries count.
 
## Remarks
 A number of colors in palette depends on the color depth of the image where it is used. 1-bit bitmaps can have only 2 colors, 4-bit bitmaps - 16 colors, 8-bit bitmaps - 256 colors. 8 bit is a maximum bit depth for indexed images, so this property never exceed 256.
   
## 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)
