[]
Sets the specified line to a preset gradient.
Use this method to apply one of the predefined gradient combinations to the line. The gradient style controls the direction of the gradient, and the variant selects one of the available preset layouts for that style.
void PresetGradient(GradientStyle style, int variant, PresetGradientType presetGradientType)
Sub PresetGradient(style As GradientStyle, [variant] As Integer, presetGradientType As PresetGradientType)
| Type | Name | Description |
|---|---|---|
| GradientStyle | style | The required GradientStyle that specifies the direction of the preset gradient. |
| int | variant | The required gradient variant. Valid values are from 1 through 4. |
| PresetGradientType | presetGradientType | The required PresetGradientType that specifies the predefined gradient to apply. |
IShape connector = worksheet.Shapes.AddConnector(ConnectorType.Straight, 10, 10, 200, 100);
ILineFormat line = connector.Line;
line.PresetGradient(GradientStyle.Vertical, 4, PresetGradientType.CalmWater);