[]
        
(Showing Draft Content)

C1.C1Pdf.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.

Remarks

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

FillRectangle(Brush, float, float, float, float)

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

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

The object that determines 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.

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.

Remarks

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

FillRectangle(Brush, RectangleF)

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

Declaration
public void FillRectangle(Brush brush, RectangleF rc)
Parameters
Type Name Description
Brush brush

The object that determines the color used to fill the rectangle.

RectangleF rc

A rectangle structure that represents the rectangle to fill.

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.

Remarks

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

FillRectangle(Brush, RectangleF, SizeF)

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

Declaration
public void FillRectangle(Brush brush, RectangleF rc, SizeF corners)
Parameters
Type Name Description
Brush brush

The object that determines 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.

Remarks

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