---
title: "Graphics.FillRectangle Method (Brush, Single, Single, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_FillRectangle_5_2d30ad96.htm
product: "Graphics Mill"
---

# Graphics.FillRectangle Method (Brush, Single, Single, Single, Single)
 
Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void FillRectangle(Brush brush,float x,float y,float width,float height
)
```
 
### Parameters
 
 - brush
     - Type: [Aurigma.GraphicsMill.Drawing.Brush](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Brush.htm.md)
A [Brush](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Brush.htm.md) that determines the characteristics of the fill.

 - x
     - Type: System.Single
The x-coordinate of the upper-left corner of the rectangle to draw.

 - y
     - Type: System.Single
The y-coordinate of the upper-left corner of the rectangle to draw.

 - width
     - Type: System.Single
The width of the rectangle to draw.

 - height
     - Type: System.Single
The height of the rectangle to draw.
 
## Remarks
  
To draw an outlined rectangle, use [DrawRectangle(Pen, Single, Single, Single, Single)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_DrawRectangle_5_b3708ac1.htm.md) method.
   
## See Also

### Reference

- [Graphics Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md)
- [FillRectangle Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_Graphics_FillRectangle.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
- [Graphics.DrawRectangle(Pen, Single, Single, Single, Single)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_DrawRectangle_5_b3708ac1.htm.md)

### Manual

- [Graphics: Drawing Images and Geometric Shapes](https://www.graphicsmill.com/docs/gm/graphics.htm.md)
