Class GradientFill

GradientFill class

Represents the gradient fill.

public class GradientFill : Fill

Properties

NameDescription
Angle { get; set; }The angle of linear fill.
DirectionType { get; }Gets the gradient direction type.
FillType { get; }Gets the gradient fill type.
GradientStops { get; }Represents the gradient stop collection.

Methods

NameDescription
override Equals(object)/(Inherited from Fill.)
override GetHashCode()Gets the hash code.(Inherited from Fill.)
SetGradient(GradientFillType, double, GradientDirectionType)Set the gradient fill type and direction.
SetOneColorGradient(Color, double, GradientStyleType, int)Sets the specified fill to a one-color gradient. Only applies for Excel 2007.
SetPresetThemeGradient(PresetThemeGradientType, ThemeColorType)Sets preset theme gradient fill.
SetTwoColorGradient(Color, Color, GradientStyleType, int)Sets the specified fill to a two-color gradient. Only applies for Excel 2007.
SetTwoColorGradient(Color, double, Color, double, GradientStyleType, int)Sets the specified fill to a two-color gradient. Only applies for Excel 2007.

See Also