[]
Specifies the type of gradient fill.
Use this enum to distinguish between no gradient fill, a linear gradient, and a path gradient. A linear gradient transitions colors along a line, while a path gradient transitions colors within a rectangular path defined by its boundary settings.
public enum GradientFillType
Public Enum GradientFillType
GradientFillType fillType = GradientFillType.Linear;
if (fillType == GradientFillType.Linear)
{
worksheet.Range["A1"].Value = "Linear gradient fill";
}
| Name | Description |
|---|---|
| Linear | Specifies that this gradient fill is of linear gradient type. Linear gradient type means that the transition from one color to the next is along a line. |
| None | Specifies that no gradient fill is applied. |
| Path | Specifies a path gradient fill. In a path gradient fill, the boundary of the transition from one color to the next is a rectangle defined by the top, bottom, left, and right attributes of the gradient fill. |