Spread Windows Forms 12.0 Product Documentation
GetGradientBrush Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet.Extensions.Gdi Namespace > GdiExtensions Class : GetGradientBrush Method
A GrapeCity.Spreadsheet.GradientFillEffect value represent the gradient effect
A GrapeCity.Spreadsheet.Workbook value represents the workbook.
A System.Drawing.Rectangle structure that specifies the bounds of the gradient effect.
A System.Boolean value represent that the brush should be disposabled after creating
Create a System.Drawing.Brush instance from the gradient effect.
Syntax
'Declaration
 
Public Shared Function GetGradientBrush( _
   ByRef gradientFillEffect As GradientFillEffect, _
   ByVal workbook As IWorkbook, _
   ByRef r As Rectangle, _
   ByRef disposable As Boolean _
) As Brush
'Usage
 
Dim gradientFillEffect As GradientFillEffect
Dim workbook As IWorkbook
Dim r As Rectangle
Dim disposable As Boolean
Dim value As Brush
 
value = GdiExtensions.GetGradientBrush(gradientFillEffect, workbook, r, disposable)
public static Brush GetGradientBrush( 
   ref GradientFillEffect gradientFillEffect,
   IWorkbook workbook,
   ref Rectangle r,
   out bool disposable
)

Parameters

gradientFillEffect
A GrapeCity.Spreadsheet.GradientFillEffect value represent the gradient effect
workbook
A GrapeCity.Spreadsheet.Workbook value represents the workbook.
r
A System.Drawing.Rectangle structure that specifies the bounds of the gradient effect.
disposable
A System.Boolean value represent that the brush should be disposabled after creating

Return Value

The created drawing brush.
See Also

Reference

GdiExtensions Class
GdiExtensions Members