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 As System.Drawing.Graphics, _
ByVal As System.Drawing.Rectangle, _
ByVal As System.Drawing.Brush, _
ByVal As System.Drawing.Color, _
ByVal As System.Drawing.Color, _
ByVal As System.Drawing.Color, _
ByVal As System.Integer, _
ByVal As System.Windows.Forms.TabAlignment, _
ByVal As System.Boolean _
)
public void DrawThemedBox(
System.Drawing.Graphics ,
System.Drawing.Rectangle ,
System.Drawing.Brush ,
System.Drawing.Color ,
System.Drawing.Color ,
System.Drawing.Color ,
System.int ,
System.Windows.Forms.TabAlignment ,
System.bool
)
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