'Declaration
Public Overloads Sub DrawRectangle( _
ByVal pen As System.Drawing.Pen, _
ByVal rect As System.Drawing.Rectangle, _
ByVal corner As System.Drawing.Size _
)
public void DrawRectangle(
System.Drawing.Pen pen,
System.Drawing.Rectangle rect,
System.Drawing.Size corner
)
Parameters
pen
A System.Drawing.Pen object that determines the color, width of the rectangle.
rect
A System.Drawing.Rectangle structure that represents the rectangle to draw.
corner
Size of the ellipse used to draw the round corners of the rectangle.
Remarks
The DrawRectangle method draws the outline of the rectangle. To fill the rectangle, use the FillRectangle(Brush,Rectangle) method.