True DBGrid for WinForms | ComponentOne
C1.Win.TrueDBGrid.8 Assembly / C1.Win.TrueDBGrid Namespace / GridRenderer Class / DrawBorder Method / DrawBorder(Graphics,Rectangle,BorderStyle,Color) Method
A System.Drawing.Graphics object.
Border rectangle area.
Border style.
Border color.

In This Topic
    DrawBorder(Graphics,Rectangle,BorderStyle,Color) Method
    In This Topic
    Draws the 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
    Border rectangle area.
    borderStyle
    Border style.
    borderColor
    Border color.

    Return Value

    Whether the border needs to be painted.
    See Also