Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Extensions Namespace / StyleExtensions Class / CreateGradientFill Method / CreateGradientFill(IStyles,Double,Color,Color) Method
The GrapeCity.Spreadsheet.IStyles object that creates the gradient fill.
A System.Double value indicates the angle of the linear gradient.
A GrapeCity.Spreadsheet.Color value indicates the color of the first gradient stop, constituting this gradient fill.
A GrapeCity.Spreadsheet.Color value indicates the color of the second gradient stop, constituting this gradient fill.


In This Topic
    CreateGradientFill(IStyles,Double,Color,Color) Method
    In This Topic
    Creates the linear gradient fill.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateGradientFill( _
       ByVal styles As IStyles, _
       ByVal degree As Double, _
       ByVal color1 As Color, _
       ByVal color2 As Color _
    ) As Fill
    'Usage
     
    
    Dim styles As IStyles
    Dim degree As Double
    Dim color1 As Color
    Dim color2 As Color
    Dim value As Fill
     
    value = StyleExtensions.CreateGradientFill(styles, degree, color1, color2)
    public static Fill CreateGradientFill( 
       IStyles styles,
       double degree,
       Color color1,
       Color color2
    )

    Parameters

    styles
    The GrapeCity.Spreadsheet.IStyles object that creates the gradient fill.
    degree
    A System.Double value indicates the angle of the linear gradient.
    color1
    A GrapeCity.Spreadsheet.Color value indicates the color of the first gradient stop, constituting this gradient fill.
    color2
    A GrapeCity.Spreadsheet.Color value indicates the color of the second gradient stop, constituting this gradient fill.

    Return Value

    A GrapeCity.Spreadsheet.Fill value represents the created gradient fill.
    See Also