## Style::SetBorder(BorderType, CellBorderType, const Aspose::Cells::Color\&) method


Sets the borders of the style.

```cpp
bool Aspose::Cells::Style::SetBorder(BorderType borderType, CellBorderType borderStyle, const Aspose::Cells::Color &borderColor)
```


| Parameter | Type | Description |
| --- | --- | --- |
| borderType | BorderType | The border(s) to be set, can be combination of [BorderType](../../bordertype/). |
| borderStyle | CellBorderType | The style of the border. |
| borderColor | const Aspose::Cells::Color\& | The color of the border. |

## ReturnValue

Whether current border settings have been changed.

## See Also

* Class [Vector](../../vector/)
* Enum [BorderType](../../bordertype/)
* Enum [CellBorderType](../../cellbordertype/)
* Class [Style](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Style::SetBorder(BorderType, CellBorderType, const CellsColor\&) method


Sets the borders of the style.

```cpp
bool Aspose::Cells::Style::SetBorder(BorderType borderType, CellBorderType borderStyle, const CellsColor &borderColor)
```


| Parameter | Type | Description |
| --- | --- | --- |
| borderType | BorderType | The border(s) to be set, can be combination of [BorderType](../../bordertype/). |
| borderStyle | CellBorderType | The style of the border. |
| borderColor | const CellsColor\& | The color of the border. |

## ReturnValue

Whether current border settings have been changed.

## See Also

* Class [Vector](../../vector/)
* Enum [BorderType](../../bordertype/)
* Enum [CellBorderType](../../cellbordertype/)
* Class [CellsColor](../../cellscolor/)
* Class [Style](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
