ComponentOne Menus and Toolbars for WinForms
C1.Win.C1Command.4.5.2 Assembly / C1.Win.C1Command.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 System.Drawing.Graphics, _
       ByVal r As System.Drawing.Rectangle, _
       ByVal b As System.Drawing.Brush, _
       ByVal borderColor As System.Drawing.Color, _
       ByVal corners As System.Integer _
    ) 
    public void DrawThemedBox( 
       System.Drawing.Graphics g,
       System.Drawing.Rectangle r,
       System.Drawing.Brush b,
       System.Drawing.Color borderColor,
       System.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.
    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