## Range::ApplyStyle method


Applies formats for a whole range.

```cpp
void Aspose::Cells::Range::ApplyStyle(const Style &style, const StyleFlag &flag)
```


| Parameter | Type | Description |
| --- | --- | --- |
| style | const Style\& | The style object which will be applied. |
| flag | const StyleFlag\& | Flags which indicates applied formatting properties. |
## Remarks



Each cell in this range will contains a [Style](../../style/) object. So this is a memory-consuming method. Please use it carefully.
## See Also

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