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


Fyller den angivna rektangeln med den angivna penseln.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | Ett [Brush](../../brush/)‑objekt att använda för fyllning |
| x | float | X‑koordinaten för rektangelns övre vänstra hörn som ska fyllas |
| y | float | Y‑koordinaten för rektangelns övre vänstra hörn som ska fyllas |
| bredd | float | Bredden på rektangeln som ska fyllas |
| höjd | float | Höjden på rektangeln som ska fyllas |

## Se även

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


Fyller den angivna rektangeln med den angivna penseln.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | Ett [Brush](../../brush/)‑objekt att använda för fyllning |
| x | int | X‑koordinaten för rektangelns övre vänstra hörn som ska fyllas |
| y | int | Y‑koordinaten för rektangelns övre vänstra hörn som ska fyllas |
| bredd | int | Bredden på rektangeln som ska fyllas |
| höjd | int | Höjden på rektangeln som ska fyllas |

## Se även

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


Fyller den angivna rektangeln med den angivna penseln.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | Ett [Brush](../../brush/)‑objekt att använda för fyllning |
| rect | Rectangle | Ett [Rectangle](../../rectangle/)‑objekt som specificerar platsen och storleken på rektangeln som ska fyllas |

## Se även

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


Fyller den angivna rektangeln med den angivna penseln.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| brush | const SharedPtr\<Brush\>\& | Ett [Brush](../../brush/)‑objekt att använda för fyllning |
| rect | RectangleF | Ett [RectangleF](../../rectanglef/)‑objekt som specificerar platsen och storleken på rektangeln som ska fyllas |

## Se även

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