FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridRenderer Class / GetBackgroundBrush Method
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.

In This Topic
    GetBackgroundBrush Method (C1FlexGridRenderer)
    In This Topic
    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

    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.
    See Also