##  set_gradient(self, type, angle, direction) {#aspose.cells.drawing.GradientFillType-float-aspose.cells.drawing.GradientDirectionType}
设置渐变填充类型和方向。



```python

def set_gradient(self, type, angle, direction):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| type | [`GradientFillType`](/cells/python-net/zh/aspose.cells.drawing/gradientfilltype) |渐变填充类型。|
| angle | float |角度。仅适用于 GradientFillType.Linear。|
| direction | [`GradientDirectionType`](/cells/python-net/zh/aspose.cells.drawing/gradientdirectiontype) |方向类型。仅适用于 GradientFillType.Radial 和 GradientFillType.Rectangle。|



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