Docking Tab for WinForms | ComponentOne
C1.Win.Command.Docking.Drawing Namespace / BoxRenderer Class / DrawThemedBox Method / DrawThemedBox(Graphics,Rectangle,Brush,Color,Int32) Method
A System.Drawing.Graphics object that encapsulates a GDI+ drawing surface.
The rectangle area to paint.
A System.Drawing.Brush object to fill the rectangle.
The color of the border of the rectangle.
Radius of all rectangle corners, in pixels.

In This Topic
    DrawThemedBox(Graphics,Rectangle,Brush,Color,Int32) Method
    In This Topic
    Draws the rectangle with parameters.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawThemedBox( _
       ByVal g As Graphics, _
       ByVal r As Rectangle, _
       ByVal b As Brush, _
       ByVal borderColor As Color, _
       ByVal corners As Integer _
    ) 
    public void DrawThemedBox( 
       Graphics g,
       Rectangle r,
       Brush b,
       Color borderColor,
       int corners
    )

    Parameters

    g
    A System.Drawing.Graphics object that encapsulates a GDI+ drawing surface.
    r
    The rectangle area to paint.
    b
    A System.Drawing.Brush object to fill the rectangle.
    borderColor
    The color of the border of the rectangle.
    corners
    Radius of all rectangle corners, in pixels.
    See Also