## Range::SetStyle(const Style\&, bool) method


Apply the cell style.

```cpp
void Aspose::Cells::Range::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 [Vector](../../vector/)
* Class [Style](../../style/)
* Class [Range](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Range::SetStyle(const Style\&) method


Sets the style of the range.

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


| Parameter | Type | Description |
| --- | --- | --- |
| style | const Style\& | The [Style](../../style/) object. |

## See Also

* Class [Vector](../../vector/)
* Class [Style](../../style/)
* Class [Range](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
