ComponentOne PDF for .NET
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.

In This Topic
    DrawRectangle(Pen,RectangleF,SizeF) Method
    In This Topic
    Draws a rounded rectangle specified by rectangle and size structures.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawRectangle( _
       ByVal pen As Pen, _
       ByVal rc As RectangleF, _
       ByVal corners As SizeF _
    ) 
    public void DrawRectangle( 
       Pen pen,
       RectangleF rc,
       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