[]
Represents a rectangular gradient fill definition.
The IRectangularGradient object transitions through a series of colors within a rectangular gradient fill. Use this interface to configure the gradient convergence points at the left, top, right, and bottom edges and to manage the gradient IColorStops.
public interface IRectangularGradient
Public Interface IRectangularGradient
IRange cell = worksheet.Range["A1"];
cell.Interior.Pattern = Pattern.RectangularGradient;
IRectangularGradient gradient = (IRectangularGradient) cell.Interior.Gradient;
gradient.Left = 0.1;
gradient.Top = 0.2;
gradient.Right = 0.9;
gradient.Bottom = 0.8;
| Name | Description |
|---|---|
| Bottom | Gets or sets the convergence position of the rectangular gradient fill at the bottom. Use this property to read the bottom convergence setting of a rectangular gradient fill. |
| ColorStops | Gets the color stops for this rectangular gradient. |
| Left | Gets or sets the convergence position of the rectangular gradient fill at the left. Use this property to read the left-side convergence setting of a rectangular gradient fill. |
| Right | Gets or sets the convergence position of the rectangular gradient fill at the right. This value controls the right-side convergence position of a rectangular gradient fill. |
| Top | Gets or sets the convergence position of the rectangular gradient fill at the top. Use this property to read the top convergence setting of a rectangular gradient fill. |