---
title: "ColorPalette..::.Item Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_Item_1_e1836fc4.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.Item Property 
 
Gets/sets palette entry by index.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Default Property Item ( _itemIndex As Integer _
) As RgbColor
```
 
```csharp
public RgbColor this[int itemIndex
] { get; set; }
```
 
### Parameters
 
 - itemIndex
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Entry index you want to retrieve. It should vary in range [0, [entries count](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ColorPalette_Count.htm.md) - 1].
 
### Property Value
Color value stored in the palette by given index.
 
## Examples
  
```
For i As Integer = 0 To palette.Count - 1
    Dim color As Aurigma.GraphicsMill.RgbColor = palette(i)

    Console.WriteLine("A: " & color.A & " R: " & color.R & " G: " & color.G & " B: " & color.B)
Next
```
 
```csharp
for (int i = 0; i< palette.Count; i++)
{
    Aurigma.GraphicsMill.RgbColor color = palette[i];

    Console.WriteLine("A: " + color.A + " R: " + color.R + " G: " + color.G + " B: " + color.B);
}
```
   
## 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)
