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


使用指定的画笔填充指定的矩形。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | 用于填充的 [Brush](../../brush/) 对象 |
| x | float | 要填充的矩形左上角的 X 坐标 |
| y | float | 要填充的矩形左上角的 Y 坐标 |
| width | float | 要填充的矩形的宽度 |
| height | float | 要填充的矩形的高度 |

## 另见

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


使用指定的画笔填充指定的矩形。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | 用于填充的 [Brush](../../brush/) 对象 |
| x | int | 要填充的矩形左上角的 X 坐标 |
| y | int | 要填充的矩形左上角的 Y 坐标 |
| width | int | 要填充的矩形的宽度 |
| height | int | 要填充的矩形的高度 |

## 另见

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


使用指定的画笔填充指定的矩形。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | 用于填充的 [Brush](../../brush/) 对象 |
| rect | Rectangle | 一个 [Rectangle](../../rectangle/) 对象，指定要填充的矩形的位置和大小 |

## 另见

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


使用指定的画笔填充指定的矩形。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | 用于填充的 [Brush](../../brush/) 对象 |
| rect | RectangleF | 一个 [RectangleF](../../rectanglef/) 对象，指定要填充的矩形的位置和大小 |

## 另见

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