Docking Tab for WinForms | ComponentOne
C1.Win.Command.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 Graphics, _
       ByVal r As Rectangle, _
       ByVal b As Brush, _
       ByVal borderColor As Color, _
       ByVal borderColor2 As Color, _
       ByVal borderColor3 As Color, _
       ByVal corners As Integer, _
       ByVal orientation As TabAlignment, _
       ByVal skipBottomCorners As Boolean _
    ) 

    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
    See Also