---
title: "System::Drawing::Drawing2D::ColorBlend::set_Colors method"
url: "https://reference.aspose.com/pub/cpp/system.drawing.drawing2d/colorblend/set_colors/"
product: "Aspose.PUB for C++"
description: "System::Drawing::Drawing2D::ColorBlend::set_Colors method. Sets an array of colors to use at corresponding positions along a gradient in C++."
---

## ColorBlend::set_Colors method


Sets an array of colors to use at corresponding positions along a gradient.

```cpp
void System::Drawing::Drawing2D::ColorBlend::set_Colors(const ArrayPtr<Color> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const ArrayPtr\<Color\>\& | The array to set |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Color](../../../system.drawing/color/)
* Class [ColorBlend](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PUB for C++](../../../)
