[]
        
(Showing Draft Content)

C1.WPF.Word.C1WordDocument.DrawRectangle

DrawRectangle Method

DrawRectangle(Pen, double, double, double, double)

Draw rectangle from this document.

Declaration
public void DrawRectangle(Pen pen, double x, double y, double width, double height)
Parameters
Type Name Description
Pen pen

The drawing pen.

double x

The x (top-left corner) coordinate.

double y

The y (top-left corner) coordinate.

double width

The width of the rectangle.

double height

The height of the rectangle.

DrawRectangle(Pen, Rect)

Draw rectangle from this document.

Declaration
public void DrawRectangle(Pen pen, Rect rc)
Parameters
Type Name Description
Pen pen

The drawing pen.

Rect rc

The drawing rectangle.

DrawRectangle(Pen, Rect, Size)

Draw round rectangle from this document.

Declaration
public void DrawRectangle(Pen pen, Rect rc, Size corners)
Parameters
Type Name Description
Pen pen

The drawing pen.

Rect rc

The drawing rectangle.

Size corners

The cones size.