ActiveReports 12
CreateBrush Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.ActiveReports Namespace > GraphicsExtensions Class : CreateBrush Method
The graphics to draw on.
The style of the background.
One of the System.Drawing.Drawing2D.HatchStyle values that represents the pattern drawn by this brush.
One of the GrapeCity.ActiveReports.SectionReportModel.GradientStyle values the defines the gradient style.
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
A System.Drawing.Color structure that represents the first color.
A System.Drawing.Color structure that represents the second color.
Creates new brush depending of specified background style.
Syntax
'Declaration
 
Public Shared Function CreateBrush( _
   ByVal graphics As Graphics, _
   ByVal backgroundStyle As BackgroundStyle, _
   ByVal hatchStyle As HatchStyle, _
   ByVal gradientStyle As GradientStyle, _
   ByVal rect As RectangleF, _
   ByVal firstColor As Color, _
   ByVal secondColor As Color _
) As Brush

Parameters

graphics
The graphics to draw on.
backgroundStyle
The style of the background.
hatchStyle
One of the System.Drawing.Drawing2D.HatchStyle values that represents the pattern drawn by this brush.
gradientStyle
One of the GrapeCity.ActiveReports.SectionReportModel.GradientStyle values the defines the gradient style.
rect
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
firstColor
A System.Drawing.Color structure that represents the first color.
secondColor
A System.Drawing.Color structure that represents the second color.
See Also

Reference

GraphicsExtensions Class
GraphicsExtensions Members