ComponentOne PDF for .NET
DrawRectangle(Pen,RectangleF,SizeF) Method

C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace > C1PdfDocument Class > DrawRectangle Method : DrawRectangle(Pen,RectangleF,SizeF) Method
System.Drawing.Pen object that determines the color, width, and style of the rectangle.
A rectangle structure that represents the rectangle to draw.
A size structure that contains the radius of the rectangle corners.
Draws a rounded rectangle specified by rectangle and size structures.
Syntax
'Declaration
 
Public Overloads Sub DrawRectangle( _
   ByVal pen As System.Drawing.Pen, _
   ByVal rc As System.Drawing.RectangleF, _
   ByVal corners As System.Drawing.SizeF _
) 
public void DrawRectangle( 
   System.Drawing.Pen pen,
   System.Drawing.RectangleF rc,
   System.Drawing.SizeF corners
)

Parameters

pen
System.Drawing.Pen object that determines the color, width, and style of the rectangle.
rc
A rectangle structure that represents the rectangle to draw.
corners
A size structure that contains the radius of the rectangle corners.
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