##  custom_theme(self, theme_name, colors) {#str-aspose.pydrawing.Color[]}
风俗为主题。



```python

def custom_theme(self, theme_name, colors):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| theme_name | str |主题名称|
| colors | aspose.pydrawing.Color[] |主题颜色|
### 注意事项

颜色的长度应为12。
|数组索引|主题类型|
| :- | :- |
| 0|背景1|
| 1|文本1|
| 2|背景2|
| 3|文本2|
| 4|口音1|
| 5| Accent2|
| 6| Accent3|
| 7| Accent4|
| 8| Accent5|
| 9| Accent6|
| 10|超级链接|
| 11|已关注的超链接|
* 模块[`aspose.cells`](../../)
* 类 [`Workbook`](/cells/python-net/zh/aspose.cells/workbook)
