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

In This Topic
    DrawRectangle(Pen,Single,Single,Single,Single) Method
    In This Topic
    Draws a rectangle specified by a coordinate pair, a width, and a height.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawRectangle( _
       ByVal pen As Pen, _
       ByVal x As Single, _
       ByVal y As Single, _
       ByVal width As Single, _
       ByVal height As Single _
    ) 
    public void DrawRectangle( 
       Pen pen,
       float x,
       float y,
       float width,
       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