[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridRenderer.GetBackgroundBrush

GetBackgroundBrush Method

GetBackgroundBrush(C1FlexGridBase, CellType, Rectangle)

Gets a Brush object used to paint the cell background for a specific cell type.

Declaration
public virtual Brush GetBackgroundBrush(C1FlexGridBase flex, C1FlexGridRenderer.CellType cellType, Rectangle bounds)
Parameters
Type Name Description
C1FlexGridBase flex

C1FlexGridBase that contains the cell being drawn.

C1FlexGridRenderer.CellType cellType

C1FlexGridRenderer.CellType value that determines the type of cell being drawn.

Rectangle bounds

A Rectangle that represents the bounds of the cell being drawn.

Returns
Type Description
Brush

A 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.