Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / EnhancedRowHeaderRenderer Class / PaintBackground Method
Graphics device interface for painting the header cell
Whether to paint visual styles (XP themes)
Whether to paint the header cell to the screen
Whether to paint the header cell as pressed
Whether the header cell has focus
Boundary rectangle
Integer number of resolution (DPI) along the x-axis
Integer number of resolution (DPI) along the y-axis
Visual styles setting
Whether to draw as right-to-left
Background color of the header cell


In This Topic
    PaintBackground Method (EnhancedRowHeaderRenderer)
    In This Topic
    Paints the background of the enhanced header cell.
    Syntax
    'Declaration
     
    
    Protected Overrides Sub PaintBackground( _
       ByVal g As Graphics, _
       ByRef useXpStyles As Boolean, _
       ByVal toscreen As Boolean, _
       ByVal pressed As Boolean, _
       ByVal focus As Boolean, _
       ByVal r As Rectangle, _
       ByVal dpx As Integer, _
       ByVal dpy As Integer, _
       ByVal style As VisualStyles, _
       ByVal rightToLeft As Boolean, _
       ByVal backColor As Color _
    ) 
    'Usage
     
    
    Dim instance As EnhancedRowHeaderRenderer
    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)

    Parameters

    g
    Graphics device interface for painting the header cell
    useXpStyles
    Whether to paint visual styles (XP themes)
    toscreen
    Whether to paint the header cell to the screen
    pressed
    Whether to paint the header cell as pressed
    focus
    Whether the header 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
    Visual styles setting
    rightToLeft
    Whether to draw as right-to-left
    backColor
    Background color of the header cell
    See Also