Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / GridControl Class / PaintFocusRectangle Method
The GridElement around which the focus rectangle will painted.
The System.Drawing.Graphics to draw on.
The System.Drawing.Rectangle to draw in.
A System.Drawing.Color structure representing the foreground color of the focus rectangle.
A System.Drawing.Color structure representing the background color of the focus rectangle.
true if the grid is being printed; false otherwise.


In This Topic
    PaintFocusRectangle Method
    In This Topic
    Paints the focus rectangle around the CurrentRow and CurrentCell.
    Syntax
    'Declaration
     
    Protected Friend Overridable Sub PaintFocusRectangle( _
       ByVal gridElement As VisualGridElement, _
       ByVal graphics As Graphics, _
       ByVal displayRectangle As Rectangle, _
       ByVal backColor As Color, _
       ByVal foreColor As Color, _
       ByVal printing As Boolean _
    ) 
    'Usage
     
    Dim instance As GridControl
    Dim gridElement As VisualGridElement
    Dim graphics As Graphics
    Dim displayRectangle As Rectangle
    Dim backColor As Color
    Dim foreColor As Color
    Dim printing As Boolean
     
    instance.PaintFocusRectangle(gridElement, graphics, displayRectangle, backColor, foreColor, printing)
    protected internal virtual void PaintFocusRectangle( 
       VisualGridElement gridElement,
       Graphics graphics,
       Rectangle displayRectangle,
       Color backColor,
       Color foreColor,
       bool printing
    )

    Parameters

    gridElement
    The GridElement around which the focus rectangle will painted.
    graphics
    The System.Drawing.Graphics to draw on.
    displayRectangle
    The System.Drawing.Rectangle to draw in.
    backColor
    A System.Drawing.Color structure representing the foreground color of the focus rectangle.
    foreColor
    A System.Drawing.Color structure representing the background color of the focus rectangle.
    printing
    true if the grid is being printed; false otherwise.
    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