## Style::SetPatternColor method


Sets the background color.

```cpp
void Aspose::Cells::Style::SetPatternColor(BackgroundType pattern, const Aspose::Cells::Color &color1, const Aspose::Cells::Color &color2)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pattern | BackgroundType | The pattern. |
| color1 | const Aspose::Cells::Color\& | The foreground color. |
| color2 | const Aspose::Cells::Color\& | The background color. Only works when pattern is not [BackgroundType.None](../../backgroundtype/) and [BackgroundType.Solid](../../backgroundtype/). |

## See Also

* Class [Vector](../../vector/)
* Enum [BackgroundType](../../backgroundtype/)
* Class [Style](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
