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 System.Double, _
   ByVal color1 As System.Drawing.Color, _
   ByVal color2 As System.Drawing.Color _
) As CellFillLinearGradient
public static CellFillLinearGradient CreateLinearGradientFill( 
   System.double angle,
   System.Drawing.Color color1,
   System.Drawing.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 8.1, 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

View on GitHub