VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawRectangle Method / DrawRectangle(PdfPen,Single,Single,Single,Single) Method
PdfPen that determines the color, width, and style of the rectangle.
The x-coordinate of the upper-left corner of the rectangle to draw.
The y-coordinate of the upper-left corner of the rectangle to draw.
The width of the rectangle to draw.
The height of the rectangle to draw.



In This Topic
    DrawRectangle(PdfPen,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 PdfPen, _
       ByVal x As Single, _
       ByVal y As Single, _
       ByVal width As Single, _
       ByVal height As Single _
    ) 
    public void DrawRectangle( 
       PdfPen pen,
       float x,
       float y,
       float width,
       float height
    )
    public: void DrawRectangle( 
       PdfPen* pen,
       float x,
       float y,
       float width,
       float height
    ) 
    public:
    void DrawRectangle( 
       PdfPen^ pen,
       float x,
       float y,
       float width,
       float height
    ) 

    Parameters

    pen
    PdfPen that determines the color, width, and style of the rectangle.
    x
    The x-coordinate of the upper-left corner of the rectangle to draw.
    y
    The y-coordinate of the upper-left corner of the rectangle to draw.
    width
    The width of the rectangle to draw.
    height
    The height of the rectangle to draw.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also