Initializes a new
AnnLinearGradientBrush object based on a starting color, ending color and orientation.
Syntax
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.
Example
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also