←Select platform

AnnLinearGradientBrush Constructor(Color,Color,LinearGradientMode)

Summary

Initializes a new AnnLinearGradientBrush object based on a starting color, ending color and orientation.

Syntax

C#
VB
C++
public AnnLinearGradientBrush( 
   Color color1, 
   Color color2, 
   LinearGradientMode mode 
) 
  
Public Function New( _ 
   ByVal color1 As Color, _ 
   ByVal color2 As Color, _ 
   ByVal mode As LinearGradientMode _ 
) 
public: 
AnnLinearGradientBrush(  
   Color color1, 
   Color color2, 
   LinearGradientMode mode 
) 

Parameters

color1
The System.Drawing.Color structure that represents the starting color of this AnnLinearGradientBrush.

color2
The System.Drawing.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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly