Draws the outline of a rectangle that has the specified dimensions and D2DPen.
pen
D2DPen that determines the pen brush, thickness, and style.
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
Width of the rectangle to draw.
height
Height of the rectangle to draw.
DrawRectangle(D2DPen,float,float,float,float) draws the outline of a rectangle using the specified pen style.