FlexGrid for WinForms
GetBackgroundBrush Method (C1FlexGridRenderer)



C1FlexGridBase that contains the cell being drawn.
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
A System.Drawing.Rectangle that represents the bounds of the cell being drawn.
Gets a System.Drawing.Brush object used to paint the cell background for a specific cell type.
Syntax
'Declaration
 
Public Overridable Function GetBackgroundBrush( _
   ByVal flex As C1FlexGridBase, _
   ByVal cellType As C1FlexGridRenderer.CellType, _
   ByVal bounds As Rectangle _
) As Brush
'Usage
 
Dim instance As C1FlexGridRenderer
Dim flex As C1FlexGridBase
Dim cellType As C1FlexGridRenderer.CellType
Dim bounds As Rectangle
Dim value As Brush
 
value = instance.GetBackgroundBrush(flex, cellType, bounds)

Parameters

flex
C1FlexGridBase that contains the cell being drawn.
cellType
C1FlexGridRenderer.CellType value that determines the type of cell being drawn.
bounds
A System.Drawing.Rectangle that represents the bounds of the cell being drawn.

Return Value

A System.Drawing.Brush object used to render the cell background.
Remarks
The bounds parameter can be used to create or select complex brushes such as gradient or tiled image brushes.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridRenderer Class
C1FlexGridRenderer Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback