ComponentOne Word for WinForms
C1.C1Word.4.5.2 Assembly / C1.C1Word Namespace / C1WordDocument Class / DrawRectangle Method / DrawRectangle(Pen,Single,Single,Single,Single) Method
The drawing pen.
The x (top-left corner) coordinate.
The y (top-left corner) coordinate.
The width of the rectangle.
The height of the rectangle.

In This Topic
    DrawRectangle(Pen,Single,Single,Single,Single) Method
    In This Topic
    Draw rectangle from this document.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawRectangle( _
       ByVal pen As System.Drawing.Pen, _
       ByVal x As System.Single, _
       ByVal y As System.Single, _
       ByVal width As System.Single, _
       ByVal height As System.Single _
    ) 
    public void DrawRectangle( 
       System.Drawing.Pen pen,
       System.float x,
       System.float y,
       System.float width,
       System.float height
    )

    Parameters

    pen
    The drawing pen.
    x
    The x (top-left corner) coordinate.
    y
    The y (top-left corner) coordinate.
    width
    The width of the rectangle.
    height
    The height of the rectangle.
    See Also