## GradientFill类
代表渐变填充。



**继承：** [`GradientFill`](/cells/python-net/zh/aspose.cells.drawing/gradientfill)



GradientFill 类型公开以下成员：

### 属性
|属性|描述|
| :- | :- |
| [gradient_stops](/cells/python-net/zh/aspose.cells.drawing/gradientfill/gradient_stops) |表示梯度停止集合。|
| [fill_type](/cells/python-net/zh/aspose.cells.drawing/gradientfill/fill_type) |获取渐变填充类型。|
| [direction_type](/cells/python-net/zh/aspose.cells.drawing/gradientfill/direction_type) |获取渐变方向类型。|
| [angle](/cells/python-net/zh/aspose.cells.drawing/gradientfill/angle) |线性填充的角度。|


### 方法
|方法|描述|
| :- | :- |
| [`set_two_color_gradient(self, color1, color2, style, variant)`](/cells/python-net/zh/aspose.cells.drawing/gradientfill/set_two_color_gradient/#aspose.pydrawing.color-aspose.pydrawing.color-aspose.cells.drawing.gradientstyletype-int) |将指定的填充设置为双色渐变。<br/>仅适用于 Excel 2007。|
| [`set_two_color_gradient(self, color1, transparency1, color2, transparency2, style, variant)`](/cells/python-net/zh/aspose.cells.drawing/gradientfill/set_two_color_gradient/#aspose.pydrawing.color-float-aspose.pydrawing.color-float-aspose.cells.drawing.gradientstyletype-int) |将指定的填充设置为双色渐变。<br/>仅适用于 Excel 2007。|
| [`set_gradient(self, type, angle, direction)`](/cells/python-net/zh/aspose.cells.drawing/gradientfill/set_gradient/#aspose.cells.drawing.gradientfilltype-float-aspose.cells.drawing.gradientdirectiontype) |设置渐变填充类型和方向。|
| [`set_preset_theme_gradient(self, gradient_type, theme_color_type)`](/cells/python-net/zh/aspose.cells.drawing/gradientfill/set_preset_theme_gradient/#aspose.cells.drawing.presetthemegradienttype-aspose.cells.themecolortype) |设置预设主题渐变填充。|
| [`set_one_color_gradient(self, color, degree, style, variant)`](/cells/python-net/zh/aspose.cells.drawing/gradientfill/set_one_color_gradient/#aspose.pydrawing.color-float-aspose.cells.drawing.gradientstyletype-int) |将指定的填充设置为单色渐变。<br/>仅适用于 Excel 2007。|



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