## Graphics::FillRectangle(const SharedPtr\<Brush\>\&, float, float, float, float) method


Fills the specified rectangle with the specified brush.

```cpp
void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, float x, float y, float width, float height)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | A [Brush](../../brush/) object to use for filling |
| x | float | The X coordinate of the upper left corner of the rectangle to fill |
| y | float | The Y coordinate of the upper left corner of the rectangle to fill |
| width | float | The width of the rectangle to fill |
| height | float | The height of the rectangle to fill |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Graphics::FillRectangle(const SharedPtr\<Brush\>\&, int, int, int, int) method


Fills the specified rectangle with the specified brush.

```cpp
void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, int x, int y, int width, int height)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | A [Brush](../../brush/) object to use for filling |
| x | int | The X coordinate of the upper left corner of the rectangle to fill |
| y | int | The Y coordinate of the upper left corner of the rectangle to fill |
| width | int | The width of the rectangle to fill |
| height | int | The height of the rectangle to fill |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Graphics::FillRectangle(const SharedPtr\<Brush\>\&, Rectangle) method


Fills the specified rectangle with the specified brush.

```cpp
void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, Rectangle rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | A [Brush](../../brush/) object to use for filling |
| rect | Rectangle | A [Rectangle](../../rectangle/) object that specifies the location and size of the rectangle to fill |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Class [Rectangle](../../rectangle/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Graphics::FillRectangle(const SharedPtr\<Brush\>\&, RectangleF) method


Fills the specified rectangle with the specified brush.

```cpp
void System::Drawing::Graphics::FillRectangle(const SharedPtr<Brush> &brush, RectangleF rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | A [Brush](../../brush/) object to use for filling |
| rect | RectangleF | A [RectangleF](../../rectanglef/) object that specifies the location and size of the rectangle to fill |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Brush](../../brush/)
* Class [RectangleF](../../rectanglef/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
