Draws a rectangle specified by a System.Drawing.Rectangle structure.
- pen
- A System.Drawing.Pen that determines the color, width, and style of the rectangle.
- rect
- A System.Drawing.Rectangle structure that represents the rectangle to draw.
For information about how to draw a System.Drawing.RectangleF, see Graphics.DrawRectangles(Pen, RectangleF[]).