GradientFill.SetGradient

GradientFill.SetGradient method

Set the gradient fill type and direction.

public void SetGradient(GradientFillType type, double angle, GradientDirectionType direction)
ParameterTypeDescription
typeGradientFillTypeGradient fill type.
angleDoubleThe angle. Only applies for GradientFillType.Linear.
directionGradientDirectionTypeThe direction type. Only applies for GradientFillType.Radial and GradientFillType.Rectangle.

See Also