Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Styles Class / CreateGradientFill Method / CreateGradientFill(Double,Color,Color) Method
A System.Double value indicates the angle of the linear gradient.
A Color value indicates the color of the first gradient stop, constituting this gradient fill.
A Color value indicates the color of the second gradient stop, constituting this gradient fill.


In This Topic
CreateGradientFill(Double,Color,Color) Method
In This Topic
Creates the linear gradient fill.
Syntax
'Declaration
 
Public Overloads Function CreateGradientFill( _
   ByVal degree As Double, _
   ByVal color1 As Color, _
   ByVal color2 As Color _
) As Fill
 
'Usage
 
Dim instance As Styles
Dim degree As Double
Dim color1 As Color
Dim color2 As Color
Dim value As Fill
 
value = instance.CreateGradientFill(degree, color1, color2)

Parameters

degree
A System.Double value indicates the angle of the linear gradient.
color1
A Color value indicates the color of the first gradient stop, constituting this gradient fill.
color2
A Color value indicates the color of the second gradient stop, constituting this gradient fill.

Return Value

A Fill value represents the created gradient fill.
See Also