Version

CreateRectangularGradientFill(Color,Color) Method

Creates a rectangular gradient that can be applied to a cell's fill.
Syntax
'Declaration
 
Public Overloads Shared Function CreateRectangularGradientFill( _
   ByVal color1 As System.Drawing.Color, _
   ByVal color2 As System.Drawing.Color _
) As CellFillRectangularGradient
public static CellFillRectangularGradient CreateRectangularGradientFill( 
   System.Drawing.Color color1,
   System.Drawing.Color color2
)

Parameters

color1
The color at the inner rectangle (cell center) of the gradient.
color2
The color at the outer rectangle (cell edges) of the gradient.
Exceptions
ExceptionDescription
System.ArgumentExceptioncolor1 or color2 are 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