Method FillRectangle
FillRectangle(Rectangle)
When implemented by a class, fills the given rectangle by using the current brush.
void FillRectangle(Rectangle rect)
Parameters
rectRectangleThe rectangle object to fill.
FillRectangle(int, int, int, int)
When implemented by a class, fills the given rectangular area by using the current brush.
void FillRectangle(int x, int y, int width, int height)
Parameters
xintX-coordinate of the upper-left corner of the rectangle.
yintY-coordinate of the upper-left corner of the rectangle.
widthintWidth of the rectangle.
heightintHeight of the rectangle.
FillRectangle(Color, Rectangle)
When implemented by a class, fills the given rectangle by using specified color.
void FillRectangle(Color color, Rectangle rect)
Parameters
FillRectangle(Color, int, int, int, int)
When implemented by a class, fills the given rectangle by using specified color.
void FillRectangle(Color color, int x, int y, int width, int height)