## FillRectangle(Brush, float, float, float, float) {#fillrectangle}

填充由一对坐标、宽度和高度指定的矩形的内部。

```csharp
public void FillRectangle(Brush brush, float x, float y, float width, float height)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| brush | Brush | Brush这决定了填充的特性。 |
| x | Single | 要填充的矩形左上角的 x 坐标。 |
| y | Single | 要填充的矩形左上角的 y 坐标。 |
| width | Single | 要填充的矩形的宽度。 |
| height | Single | 要填充的矩形的高度。 |

### 也可以看看

* class [Brush](../../brush)
* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

---

## FillRectangle(Brush, RectangleF) {#fillrectangle_1}

填充由 RectangleF 结构指定的矩形的内部。

```csharp
public void FillRectangle(Brush brush, RectangleF rect)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| brush | Brush | 决定填充特性的画笔。 |
| rect | RectangleF | RectangleF 结构，表示要填充的矩形。 |

### 也可以看看

* class [Brush](../../brush)
* struct [RectangleF](../../rectanglef)
* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
