GradientFill

GradientFill class

Represents the gradient fill.

public class GradientFill : Fill

Properties

Name Description
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

Name Description
override Equals(object) /
override GetHashCode() Gets the hash code.
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.
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