ComponentOne Word for WPF
C1.WPF.Word.4.5.2 Assembly / C1.WPF.Word Namespace / C1WordDocument Class / DrawRectangle Method / DrawRectangle(Pen,Double,Double,Double,Double) 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,Double,Double,Double,Double) Method
    In This Topic
    Draw rectangle from this document.
    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
    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