Draws a rectangle specified by a coordinate pair, a width, and a height.
Syntax
'Declaration
Public Overloads Sub DrawRectangle( _
ByVal As System.Drawing.Pen, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single _
)
public void DrawRectangle(
System.Drawing.Pen ,
System.float ,
System.float ,
System.float ,
System.float
)
Parameters
- pen
- System.Drawing.Pen object that determines the color, width, and style of the rectangle.
- x
- x-coordinate of the upper-left corner of the rectangle to draw.
- y
- x-coordinate of the upper-left corner of the rectangle to draw.
- width
- Width of the rectangle to draw.
- height
- Height of the rectangle to draw.
See Also