C#
VB
C++
Draws the outline of a rectangle that has the specified dimensions and D2DPen.
pen
D2DPen that determines the Pen brush, thickness, and style.
rect
The dimensions of the rectangle to draw.
This method draws the outline of a rectangle using the specified Pen style.