BCGControlBar Library for .NET
DrawRoundedRect Method




A graphics to draw on.
A pen to draw a rectangle.
The boundaries of the rectangle to draw.
Specifies the size of the rounded corner.
Draws a rectangle with rounded corners.
Syntax
'Declaration
 
Public Shared Sub DrawRoundedRect( _
   ByVal grph As Graphics, _
   ByVal pen As Pen, _
   ByVal rect As Rectangle, _
   ByVal ellipseSize As Size _
) 
'Usage
 
Dim grph As Graphics
Dim pen As Pen
Dim rect As Rectangle
Dim ellipseSize As Size
 
DrawManager.DrawRoundedRect(grph, pen, rect, ellipseSize)
public static void DrawRoundedRect( 
   Graphics grph,
   Pen pen,
   Rectangle rect,
   Size ellipseSize
)
public: static void DrawRoundedRect( 
   Graphics* grph,
   Pen* pen,
   Rectangle rect,
   Size ellipseSize
) 
public:
static void DrawRoundedRect( 
   Graphics^ grph,
   Pen^ pen,
   Rectangle rect,
   Size ellipseSize
) 

Parameters

grph
A graphics to draw on.
pen
A pen to draw a rectangle.
rect
The boundaries of the rectangle to draw.
ellipseSize
Specifies the size of the rounded corner.
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

Reference

DrawManager Class
DrawManager Members

Send Feedback