[]
Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
public void FillRectangle(Color color, float x, float y, float width, float height)
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. |
All coordinates are expressed in points, measured from the upper-left corner of the page.
Fills the interior of a rectangle specified by a rectangle structure.
public void FillRectangle(Color color, RectangleF rc)
Type | Name | Description |
---|---|---|
Color | color | The color used to fill the rectangle. |
RectangleF | rc | A rectangle structure that represents the rectangle to fill. |
All coordinates are expressed in points, measured from the upper-left corner of the page.
Fills the interior of a rounded rectangle specified by rectangle and size structures.
public void FillRectangle(Color color, RectangleF rc, SizeF corners)
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. |
All coordinates are expressed in points, measured from the upper-left corner of the page.