
## set_gradient(self, type, angle, direction) {#aspose.cells.drawing.GradientFillType-float-aspose.cells.drawing.GradientDirectionType}

Set the gradient fill type and direction.



```python

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


| Parameter | Type | Description |
| :- | :- | :- |
| type | aspose.cells.drawing.GradientFillType | Gradient fill type. |
| angle | float | The angle. Only applies for GradientFillType.Linear. |
| direction | aspose.cells.drawing.GradientDirectionType | The direction type. Only applies for GradientFillType.Radial and GradientFillType.Rectangle. |



### See Also
* module [`aspose.cells.drawing`](../../)
* class [`GradientFill`](/cells/python-net/aspose.cells.drawing/gradientfill)
