ComponentOne PDF for .NET
C1.C1Pdf Namespace / C1PdfDocument Class / DrawRectangle Method / DrawRectangle(Pen,RectangleF) Method
System.Drawing.Pen object that determines the color, width, and style of the rectangle.
A rectangle structure that represents the rectangle to draw.

In This Topic
    DrawRectangle(Pen,RectangleF) Method
    In This Topic
    Draws a rectangle specified by a rectangle structure.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawRectangle( _
       ByVal pen As Pen, _
       ByVal rc As RectangleF _
    ) 
    public void DrawRectangle( 
       Pen pen,
       RectangleF rc
    )

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