Method FillRectangle
FillRectangle(Rectangle)
Fills the given rectangle by using the current brush.
public virtual void FillRectangle(Rectangle rect)
Parameters
rect
RectangleThe rectangle object to fill.
FillRectangle(int, int, int, int)
Fills the given rectangular area by using the current brush.
public virtual void FillRectangle(int x, int y, int width, int height)
Parameters
x
intX-coordinate of the upper-left corner of the rectangle.
y
intY-coordinate of the upper-left corner of the rectangle.
width
intWidth of the rectangle.
height
intHeight of the rectangle.
FillRectangle(Color, Rectangle)
Fills the given rectangle by using specified color.
public virtual void FillRectangle(Color color, Rectangle rect)
Parameters
FillRectangle(Color, int, int, int, int)
Fills the given rectangle by using specified color.
public virtual void FillRectangle(Color color, int x, int y, int width, int height)