[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILineFormat.OneColorGradient

OneColorGradient Method

OneColorGradient(GradientStyle, int, double)

Sets the specified line to a one-color gradient.

Use degree to control the gradient intensity from dark to light.

Declaration
void OneColorGradient(GradientStyle style, int variant, double degree)
Sub OneColorGradient(style As GradientStyle, [variant] As Integer, degree As Double)
Parameters
Type Name Description
GradientStyle style

Required GradientStyle that specifies how the one-color gradient is applied to the line.

int variant

Required integer gradient variant. Valid values are from 1 through 4.

double degree

Required gradient degree. Valid values are from 0.0 (dark) through 1.0 (light).

Examples
IShape connector = worksheet.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 200, 100);
ILineFormat line = connector.Line;
line.OneColorGradient(GradientStyle.Horizontal, 2, 0.5);