Syncfusion.Grid.Windows


Points to the device context.
Specifies the cell rectangle.
Specifies the row id.
Specifies the column id.
A reference to the style of the cell.
Specifies whether borders should also be drawn or excluded.

DrawSingleCell Method (GridCellRendererBase)

Draw the contents of the specified cell including cell background and optionally also the borders. Call this method if you want to draw a stand-alone cell and you want to ensure that also the background of the cell and also the borders are painted.
Syntax
'Declaration
 
Public Sub DrawSingleCell( _
   ByVal g As Graphics, _
   ByVal cellRectangle As Rectangle, _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal style As GridStyleInfo, _
   ByVal includeBorders As Boolean _
) 
'Usage
 
Dim instance As GridCellRendererBase
Dim g As Graphics
Dim cellRectangle As Rectangle
Dim rowIndex As Integer
Dim colIndex As Integer
Dim style As GridStyleInfo
Dim includeBorders As Boolean
 
instance.DrawSingleCell(g, cellRectangle, rowIndex, colIndex, style, includeBorders)

Parameters

g
Points to the device context.
cellRectangle
Specifies the cell rectangle.
rowIndex
Specifies the row id.
colIndex
Specifies the column id.
style
A reference to the style of the cell.
includeBorders
Specifies whether borders should also be drawn or excluded.
Remarks
The method calls DrawBackground to draw the background as specified in the style object.

If includeBorders is false the area covered by borders is excluded when the rectangle is passed to the DrawBackground method.

AssemblyVersion

Syncfusion.Grid.Windows: 18.2460.0.44

See Also