## Cell::SetStyle(const Style\&) method


Sets the cell style.

```cpp
void Aspose::Cells::Cell::SetStyle(const Style &style)
```


| Parameter | Type | Description |
| --- | --- | --- |
| style | const Style\& | The cell style. |
## Remarks



If the border settings are changed, the border of adjust cells will be updated too. 
## See Also

* Class [Style](../../style/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetStyle(const Style\&, bool) method


Apply the changed property of style to the cell.

```cpp
void Aspose::Cells::Cell::SetStyle(const Style &style, bool explicitFlag)
```


| Parameter | Type | Description |
| --- | --- | --- |
| style | const Style\& | The cell style. |
| explicitFlag | bool | True, only overwriting formatting which is explicitly set. |

## See Also

* Class [Style](../../style/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetStyle(const Style\&, const StyleFlag\&) method


Apply the cell style based on flags.

```cpp
void Aspose::Cells::Cell::SetStyle(const Style &style, const StyleFlag &flag)
```


| Parameter | Type | Description |
| --- | --- | --- |
| style | const Style\& | The cell style. |
| flag | const StyleFlag\& | The style flag. |

## See Also

* Class [Style](../../style/)
* Class [StyleFlag](../../styleflag/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
