
## apply_style(self, style, flag) {#aspose.cells.Style-aspose.cells.StyleFlag}

Applies formats for a whole range.



```python

def apply_style(self, style, flag):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| style | aspose.cells.Style | The style object which will be applied. |
| flag | aspose.cells.StyleFlag | Flags which indicates applied formatting properties. |
### Remarks

Each cell in this range will contains a [`Style`](/cells/python-net/aspose.cells/style) object. 
So this is a memory-consuming method. Please use it carefully.


### See Also
* module [`aspose.cells`](../../)
* class [`Range`](/cells/python-net/aspose.cells/range)
* class [`Style`](/cells/python-net/aspose.cells/style)
