ComponentOne PDF for .NET
DrawRectangle(Pen,Single,Single,Single,Single) Method

C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace > C1PdfDocument Class > DrawRectangle Method : DrawRectangle(Pen,Single,Single,Single,Single) Method
System.Drawing.Pen object that determines the color, width, and style of the rectangle.
x-coordinate of the upper-left corner of the rectangle to draw.
x-coordinate of the upper-left corner of the rectangle to draw.
Width of the rectangle to draw.
Height of the rectangle to draw.
Draws a rectangle specified by a coordinate pair, a width, and a height.
Syntax
'Declaration
 
Public Overloads Sub DrawRectangle( _
   ByVal pen As System.Drawing.Pen, _
   ByVal x As System.Single, _
   ByVal y As System.Single, _
   ByVal width As System.Single, _
   ByVal height As System.Single _
) 
public void DrawRectangle( 
   System.Drawing.Pen pen,
   System.float x,
   System.float y,
   System.float width,
   System.float height
)

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.
Remarks
All coordinates are expressed in points, measured from the upper-left corner of the page.
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List