[]
Sets the specified line to a two-color gradient.
Use the style and variant parameters to choose one of the
built-in two-color gradient patterns for the line. The supported styles are
DiagonalDown, DiagonalUp,
FromCenter, FromCorner,
FromTitle, Horizontal,
and Vertical.
void TwoColorGradient(GradientStyle style, int variant)
Sub TwoColorGradient(style As GradientStyle, [variant] As Integer)
| Type | Name | Description |
|---|---|---|
| GradientStyle | style | Required GradientStyle that specifies how the two-color gradient is applied to the line. |
| int | variant | Required integer gradient variant. Valid values are from 1 through 4. |
IShape connector = worksheet.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 200, 100);
ILineFormat line = connector.Line;
line.TwoColorGradient(GradientStyle.Horizontal, 1);