True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.8 Assembly / C1.Win.C1TrueDBGrid Namespace / GridRenderer Class / DrawBorder Method / DrawBorder(Graphics,Rectangle,BorderStyle,Color) Method
A System.Drawing.Graphics object.
Cell border rectangle.
The border style.
The border color.

In This Topic
    DrawBorder(Graphics,Rectangle,BorderStyle,Color) Method
    In This Topic
    Draws the cell border.
    Syntax
    'Declaration
     
    Public Overloads Shared Function DrawBorder( _
       ByVal g As System.Drawing.Graphics, _
       ByVal r As System.Drawing.Rectangle, _
       ByVal borderStyle As System.Windows.Forms.BorderStyle, _
       ByVal borderColor As System.Drawing.Color _
    ) As System.Boolean
    public static System.bool DrawBorder( 
       System.Drawing.Graphics g,
       System.Drawing.Rectangle r,
       System.Windows.Forms.BorderStyle borderStyle,
       System.Drawing.Color borderColor
    )

    Parameters

    g
    A System.Drawing.Graphics object.
    r
    Cell border rectangle.
    borderStyle
    The border style.
    borderColor
    The border color.

    Return Value

    Whether the border needs to be painted.
    See Also