Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal color1 As Color, _ ByVal color2 As Color, _ ByVal mode As LinearGradientMode _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- color1
- The Color structure that represents the starting color of this AnnLinearGradientBrush.
- color2
- The Color structure that represents the ending color of this AnnLinearGradientBrush.
- mode
- A LinearGradientMode enumeration element that specifies the orientation of the gradient. The orientation determines the starting and ending points of the gradient. For example, LinearGradientMode.ForwardDiagonal specifies that the starting point is the upper-left corner of the rectangle and the ending point is the lower-right corner of the rectangle.
For an example, refer to AnnLinearGradientBrush.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family