Draws a rectangle specified by a coordinate pair, a width, and a height.
Syntax
Parameters
- pen
- A Pen object that determines the color, width, and style of the rectangle.
- x
- The x-coordinate of the upper-left corner of the rectangle to draw.
- y
- The y-coordinate of the upper-left corner of the rectangle to draw.
- width
- The width of the rectangle to draw.
- height
- The height of the rectangle to draw.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also