PDF for UWP | ComponentOne
C1.Xaml.Pdf Namespace / C1PdfDocument Class / DrawRectangle Method / DrawRectangle(Pen,Double,Double,Double,Double) Method
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,Double,Double,Double,Double) 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 Double, _
       ByVal y As Double, _
       ByVal width As Double, _
       ByVal height As Double _
    ) 
    public void DrawRectangle( 
       Pen pen,
       double x,
       double y,
       double width,
       double height
    )

    Parameters

    pen
    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