DrawRectangle Method
DrawRectangle(Pen, Rect)
Draws a rectangle specified by a Rect structure.
Declaration
public void DrawRectangle(Pen pen, Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
Pen | pen | A Pen that determines the color, width, and style of the rectangle. |
Rect | rectangle | A Rect structure that represents the rectangle to draw. |