[]
        
(Showing Draft Content)

C1.Pdf.C1PdfDocument.FillRectangle

FillRectangle Method

FillRectangle(Color, float, float, float, float)

Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.

Declaration
public void FillRectangle(Color color, float x, float y, float width, float height)
Parameters
Type Name Description
Color color

The color used to fill the rectangle.

float x

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

float y

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

float width

Width of the rectangle to fill.

float height

Height of the rectangle to fill.

Implements
Remarks

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

FillRectangle(Color, RectangleF)

Fills the interior of a rectangle specified by a rectangle structure.

Declaration
public void FillRectangle(Color color, RectangleF rc)
Parameters
Type Name Description
Color color

The color used to fill the rectangle.

RectangleF rc

A rectangle structure that represents the rectangle to fill.

Implements
Remarks

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

FillRectangle(Color, RectangleF, SizeF)

Fills the interior of a rounded rectangle specified by rectangle and size structures.

Declaration
public void FillRectangle(Color color, RectangleF rc, SizeF corners)
Parameters
Type Name Description
Color color

The color used to fill the rectangle.

RectangleF rc

A rectangle structure that represents the rectangle to fill.

SizeF corners

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

Implements
Remarks

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