GradientFill类
GradientFill类
代表渐变填充。
继承: GradientFill
GradientFill 类型公开以下成员:
属性
| 属性 | 描述 |
|---|---|
| gradient_stops | 表示梯度停止集合。 |
| fill_type | 获取渐变填充类型。 |
| direction_type | 获取渐变方向类型。 |
| angle | 线性填充的角度。 |
方法
| 方法 | 描述 |
|---|---|
set_two_color_gradient(self, color1, color2, style, variant) | 将指定的填充设置为双色渐变。 仅适用于 Excel 2007。 |
set_two_color_gradient(self, color1, transparency1, color2, transparency2, style, variant) | 将指定的填充设置为双色渐变。 仅适用于 Excel 2007。 |
set_gradient(self, type, angle, direction) | 设置渐变填充类型和方向。 |
set_preset_theme_gradient(self, gradient_type, theme_color_type) | 设置预设主题渐变填充。 |
set_one_color_gradient(self, color, degree, style, variant) | 将指定的填充设置为单色渐变。 仅适用于 Excel 2007。 |