Spread Windows Forms 12.0 Product Documentation
CreateGradientFill(IStyles,Double,Double,Double,Double,Color,Color) Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet.Extensions Namespace > StyleExtensions Class > CreateGradientFill Method : CreateGradientFill(IStyles,Double,Double,Double,Double,Color,Color) Method
The GrapeCity.Spreadsheet.IStyles object that creates the gradient fill.
Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1). For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1). For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1). For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
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.
Creates the path gradient fill.
Syntax
'Declaration
 
Public Overloads Shared Function CreateGradientFill( _
   ByVal styles As IStyles, _
   ByVal top As Double, _
   ByVal left As Double, _
   ByVal bottom As Double, _
   ByVal right As Double, _
   ByVal color1 As Color, _
   ByVal color2 As Color _
) As Fill
'Usage
 
Dim styles As IStyles
Dim top As Double
Dim left As Double
Dim bottom As Double
Dim right As Double
Dim color1 As Color
Dim color2 As Color
Dim value As Fill
 
value = StyleExtensions.CreateGradientFill(styles, top, left, bottom, right, color1, color2)
public static Fill CreateGradientFill( 
   IStyles styles,
   double top,
   double left,
   double bottom,
   double right,
   Color color1,
   Color color2
)

Parameters

styles
The GrapeCity.Spreadsheet.IStyles object that creates the gradient fill.
top
Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
left
Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1). For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
bottom
Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1). For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell.
right
Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1). For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell.
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

Reference

StyleExtensions Class
StyleExtensions Members
Overload List