Constructor for the Gradient class.
Declaration Syntax
C# | Visual Basic |
public Gradient( Color color1, Color color2, LinearGradientMode mode )
Public Sub New ( _ color1 As Color, _ color2 As Color, _ mode As LinearGradientMode _ )
Parameters
- color1 (Color)
- Gradient first color
- color2 (Color)
- Gradient second color
- mode (LinearGradientMode)
- Gradient mode