Constructor for the BackgroundGradient class.
Declaration Syntax
C# | Visual Basic |
public BackgroundGradient( Color color1, Color color2, LinearGradientMode mode, Color borderColor, int borderWidth )
Public Sub New ( _ color1 As Color, _ color2 As Color, _ mode As LinearGradientMode, _ borderColor As Color, _ borderWidth As Integer _ )
Parameters
- color1 (Color)
- Gradient first color
- color2 (Color)
- Gradient second color
- mode (LinearGradientMode)
- Gradient mode
- borderColor (Color)
- Border color
- borderWidth (Int32)
- Border width (enter 0 to hide the border)