GradientFill class

GradientFill class

Represents the gradient fill.

Inheritance: GradientFillFill

The GradientFill type exposes the following members:

Properties

PropertyDescription
gradient_stopsRepresents the gradient stop collection.
fill_typeGets the gradient fill type.
direction_typeGets the gradient direction type.
angleThe angle of linear fill.

Methods

MethodDescription
set_two_color_gradient(self, color1, color2, style, variant)Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
set_two_color_gradient(self, color1, transparency1, color2, transparency2, style, variant)Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
set_gradient(self, type, angle, direction)Set the gradient fill type and direction.
set_preset_theme_gradient(self, gradient_type, theme_color_type)Sets preset theme gradient fill.
set_one_color_gradient(self, color, degree, style, variant)Sets the specified fill to a one-color gradient.
Only applies for Excel 2007.

See Also