
## GradientFill class

Represents the gradient fill.



**Inheritance:** [`GradientFill`](/cells/python-net/aspose.cells.drawing/gradientfill)



The GradientFill type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [gradient_stops](/cells/python-net/aspose.cells.drawing/gradientfill/gradient_stops) | Represents the gradient stop collection. |
| [fill_type](/cells/python-net/aspose.cells.drawing/gradientfill/fill_type) | Gets the gradient fill type. |
| [direction_type](/cells/python-net/aspose.cells.drawing/gradientfill/direction_type) | Gets the gradient direction type. |
| [angle](/cells/python-net/aspose.cells.drawing/gradientfill/angle) | The angle of linear fill. |


### Methods
| Method | Description |
| :- | :- |
| [`set_two_color_gradient(self, color1, color2, style, variant)`](/cells/python-net/aspose.cells.drawing/gradientfill/set_two_color_gradient/#aspose.pydrawing.color-aspose.pydrawing.color-aspose.cells.drawing.gradientstyletype-int) | Sets the specified fill to a two-color gradient.<br/>Only applies for Excel 2007. |
| [`set_two_color_gradient(self, color1, transparency1, color2, transparency2, style, variant)`](/cells/python-net/aspose.cells.drawing/gradientfill/set_two_color_gradient/#aspose.pydrawing.color-float-aspose.pydrawing.color-float-aspose.cells.drawing.gradientstyletype-int) | Sets the specified fill to a two-color gradient.<br/>Only applies for Excel 2007. |
| [`set_gradient(self, type, angle, direction)`](/cells/python-net/aspose.cells.drawing/gradientfill/set_gradient/#aspose.cells.drawing.gradientfilltype-float-aspose.cells.drawing.gradientdirectiontype) | Set the gradient fill type and direction. |
| [`set_preset_theme_gradient(self, gradient_type, theme_color_type)`](/cells/python-net/aspose.cells.drawing/gradientfill/set_preset_theme_gradient/#aspose.cells.drawing.presetthemegradienttype-aspose.cells.themecolortype) | Sets preset theme gradient fill. |
| [`set_one_color_gradient(self, color, degree, style, variant)`](/cells/python-net/aspose.cells.drawing/gradientfill/set_one_color_gradient/#aspose.pydrawing.color-float-aspose.cells.drawing.gradientstyletype-int) | Sets the specified fill to a one-color gradient.<br/>Only applies for Excel 2007. |



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