Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
AnnLinearGradientBrush Constructor
See Also 
Leadtools.Annotations Namespace > AnnLinearGradientBrush Class : AnnLinearGradientBrush Constructor




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.
Initializes a new AnnLinearGradientBrush object based on a starting color, ending color and orientation.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal color1 As Color, _
   ByVal color2 As Color, _
   ByVal mode As LinearGradientMode _
)
Visual Basic (Usage)Copy Code
Dim color1 As Color
Dim color2 As Color
Dim mode As LinearGradientMode
 
Dim instance As AnnLinearGradientBrush(color1, color2, mode)
C# 
public AnnLinearGradientBrush( 
   Color color1,
   Color color2,
   LinearGradientMode mode
)
Managed Extensions for C++ 
public: AnnLinearGradientBrush( 
   Color color1,
   Color color2,
   LinearGradientMode mode
)
C++/CLI 
public:
AnnLinearGradientBrush( 
   Color color1,
   Color color2,
   LinearGradientMode mode
)

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

For an example, refer to AnnLinearGradientBrush.

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

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features