FlexGrid for WinForms
GetBackgroundBrush Method (GridRendererOffice2007)



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

Parameters

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

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

GridRendererOffice2007 Class
GridRendererOffice2007 Members

 

 


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

Send Feedback