Syncfusion.Grid.Windows


The System.Drawing.Graphics context of the canvas.
The row index.
The column index.
Specifies the cell rectangle. Please note that rectItem only is the visible bounds of cell.
The GridStyleInfo object that holds cell information.
Forces the background should be drawn.
Specifies whether the borders should also be drawn or excluded.

DrawSingleCell Method (GridControlBase)

Call this method to draw a single cell to a graphics object at the specified rectangle. The method does not clip the output.

Be aware that if pixel scrolling is enabled the caller needs to use clipping if this cell is at the top row or left column and only partially visible.

Syntax
'Declaration
 
Public Overridable Sub DrawSingleCell( _
   ByVal g As Graphics, _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal cellRectangle As Rectangle, _
   ByVal style As GridStyleInfo, _
   ByVal forceDrawBackground As Boolean, _
   ByVal drawBorders As Boolean _
) 
'Usage
 
Dim instance As GridControlBase
Dim g As Graphics
Dim rowIndex As Integer
Dim colIndex As Integer
Dim cellRectangle As Rectangle
Dim style As GridStyleInfo
Dim forceDrawBackground As Boolean
Dim drawBorders As Boolean
 
instance.DrawSingleCell(g, rowIndex, colIndex, cellRectangle, style, forceDrawBackground, drawBorders)

Parameters

g
The System.Drawing.Graphics context of the canvas.
rowIndex
The row index.
colIndex
The column index.
cellRectangle
Specifies the cell rectangle. Please note that rectItem only is the visible bounds of cell.
style
The GridStyleInfo object that holds cell information.
forceDrawBackground
Forces the background should be drawn.
drawBorders
Specifies whether the borders should also be drawn or excluded.
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also