PaintBackground Method (RowHeaderRenderer)
In This Topic
Paints the background of the enhanced header cell.
Syntax
'Declaration
Protected Overridable Sub PaintBackground( _
ByVal As Graphics, _
ByRef As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Rectangle, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As VisualStyles, _
ByVal As Boolean, _
ByVal As Color _
)
'Usage
Dim instance As RowHeaderRenderer
Dim g As Graphics
Dim useXpStyles As Boolean
Dim toscreen As Boolean
Dim pressed As Boolean
Dim focus As Boolean
Dim r As Rectangle
Dim dpx As Integer
Dim dpy As Integer
Dim style As VisualStyles
Dim rightToLeft As Boolean
Dim backColor As Color
instance.PaintBackground(g, useXpStyles, toscreen, pressed, focus, r, dpx, dpy, style, rightToLeft, backColor)
protected virtual void PaintBackground(
Graphics ,
ref bool ,
bool ,
bool ,
bool ,
Rectangle ,
int ,
int ,
VisualStyles ,
bool ,
Color
)
Parameters
- g
- Graphics device interface for painting the cell
- useXpStyles
- Whether to use XP themes
- toscreen
- Whether painting to the screen
- pressed
- Whether in a pressed state
- focus
- Whether the cell has focus
- r
- Boundary rectangle
- dpx
- Integer number of resolution (DPI) along the x-axis
- dpy
- Integer number of resolution (DPI) along the y-axis
- style
- Whether to turn on visual styles
- rightToLeft
- Whether drawing right to left
- backColor
- Cell background color
See Also