##  set_style(self, style) {#aspose.cells.Style}
设置单元格样式。



```python

def set_style(self, style):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| style | [`Style`](/cells/python-net/zh/aspose.cells/style) |单元格样式。|
### 注意事项

如果边框设置发生变化，调整单元格的边框也会更新。

##  set_style(self, style, explicit_flag) {#aspose.cells.Style-bool}

将改变的样式属性应用到单元格。



```python

def set_style(self, style, explicit_flag):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| style | [`Style`](/cells/python-net/zh/aspose.cells/style) |单元格样式。|
| explicit_flag | bool |确实，仅覆盖明确设置的格式。|


##  set_style(self, style, flag) {#aspose.cells.Style-aspose.cells.StyleFlag}
根据标志应用单元格样式。



```python

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


|范围|类型|描述|
| :- | :- | :- |
| style | [`Style`](/cells/python-net/zh/aspose.cells/style) |单元格样式。|
| flag | [`StyleFlag`](/cells/python-net/zh/aspose.cells/styleflag) |样式标志。|



### 也可以看看
* 模块[`aspose.cells`](../../)
* 类 [`Cell`](/cells/python-net/zh/aspose.cells/cell)
