Version

CreateLinearGradientFill(Double,Color,Color) Method

Creates a linear gradient that can be applied to a cell's fill.
Syntax
'Declaration
 
Public Overloads Shared Function CreateLinearGradientFill( _
   ByVal angle As Double, _
   ByVal color1 As Color, _
   ByVal color2 As Color _
) As CellFillLinearGradient
public static CellFillLinearGradient CreateLinearGradientFill( 
   double angle,
   Color color1,
   Color color2
)

Parameters

angle
The angle, in degrees, of the direction of the linear gradient, going clockwise from the left-to-right direction.
color1
The color at the start of the gradient.
color2
The color at the end of the gradient.
Exceptions
ExceptionDescription
System.ArgumentExceptioncolor1 or color2 are the empty or system colors or have a non-opaque alpha channel.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also