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,Color,Color,Int32,TabAlignment,Boolean) 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.
A System.Drawing.Color structure that represents the border starting color for the gradient.
A System.Drawing.Color structure that represents the border ending color for the gradient.
The tab bottom line color.
Radius of all rectangle corners, in pixels.
A System.Windows.Forms.TabAlignment structure that specifies the locations of the tabs in a tab control.

In This Topic
    DrawThemedBox(Graphics,Rectangle,Brush,Color,Color,Color,Int32,TabAlignment,Boolean) 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 borderColor2 As System.Drawing.Color, _
       ByVal borderColor3 As System.Drawing.Color, _
       ByVal corners As System.Integer, _
       ByVal orientation As System.Windows.Forms.TabAlignment, _
       ByVal skipBottomCorners As System.Boolean _
    ) 
    public void DrawThemedBox( 
       System.Drawing.Graphics g,
       System.Drawing.Rectangle r,
       System.Drawing.Brush b,
       System.Drawing.Color borderColor,
       System.Drawing.Color borderColor2,
       System.Drawing.Color borderColor3,
       System.int corners,
       System.Windows.Forms.TabAlignment orientation,
       System.bool skipBottomCorners
    )

    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
    A System.Drawing.Color structure that represents the border starting color for the gradient.
    borderColor2
    A System.Drawing.Color structure that represents the border ending color for the gradient.
    borderColor3
    The tab bottom line color.
    corners
    Radius of all rectangle corners, in pixels.
    orientation
    A System.Windows.Forms.TabAlignment structure that specifies the locations of the tabs in a tab control.
    skipBottomCorners
    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