[]
        
(Showing Draft Content)

C1.Util.IFlowDocument.DrawRectangle

DrawRectangle Method

DrawRectangle(Pen, float, float, float, float)

Draws a rectangle specified by a coordinate pair, a width, and a height.

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

GrapeCity.Documents.Drawing.Pen object that determines the color, width, and style of the rectangle.

float x

x-coordinate of the upper-left corner of the rectangle to draw.

float y

x-coordinate of the upper-left corner of the rectangle to draw.

float width

Width of the rectangle to draw.

float height

Height of the rectangle to draw.

Remarks

All coordinates are expressed in points, measured from the upper-left corner of the page.

DrawRectangle(Pen, RectangleF)

Draws a rectangle specified by a rectangle structure.

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

GrapeCity.Documents.Drawing.Pen object that determines the color, width, and style of the rectangle.

RectangleF rc

A rectangle structure that represents the rectangle to draw.

Remarks

All coordinates are expressed in points, measured from the upper-left corner of the page.

DrawRectangle(Pen, RectangleF, SizeF)

Draws a rounded rectangle specified by rectangle and size structures.

Declaration
void DrawRectangle(Pen pen, RectangleF rc, SizeF corners)
Parameters
Type Name Description
Pen pen

GrapeCity.Documents.Drawing.Pen object that determines the color, width, and style of the rectangle.

RectangleF rc

A rectangle structure that represents the rectangle to draw.

SizeF corners

A size structure that contains the radius of the rectangle corners.

Remarks

All coordinates are expressed in points, measured from the upper-left corner of the page.