Printer Object
 
Syntax
 
Printer.Rectangle X1, Y1, X2, Y2[, Radius1][,Radius2]
 
Description
Draws a rectangle.
 
All graphical objects are drawn with the current pen and filled with the current brush. Pen and brush attributes are defined with the PenColor, PenStyle, PenWidth, BrushColor, and BrushStyle properties.
 
If the Radius1 and Radius2 parameters are omitted, a rectangle is drawn.
 
All measurements may be specified with units (inches, points, twips, cm, mm, or pixels). The default unit is twips.
 
Parameter
Description
X1, Y1
First corner of the rectangle.
X2, Y2
Second corner of the rectangle.
Radius1
Optional parameter that specifies the radius of a rounded rectangles corner, in the horizontal direction.
Radius2
Optional parameter that specifies the radius of a rounded rectangles corner, in the vertical direction.
 
See Also
Example