---
title: "ColorPalette..::.Export Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorPalette_Export.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.Export Method 
 
Exports the palette into array of [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) values.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function Export As RgbColor()
```
 
```csharp
public RgbColor[] Export()
```
 
### Return Value
Array of [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) values.
 
## Examples
  
```
Dim colors As Aurigma.GraphicsMill.RgbColor() = palette.Export()

For Each color As Aurigma.GraphicsMill.RgbColor In colors
    Console.WriteLine("A: " & color.A & " R: " & color.R & " G: " & color.G & " B: " & color.B)
Next
```
 
```csharp
Aurigma.GraphicsMill.RgbColor[] colors = palette.Export();

foreach (Aurigma.GraphicsMill.RgbColor color in colors)
{
    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)
