## Graphics::DrawRectangle(const SharedPtr\<Pen\>\&, float, float, float, float) method


Dessine le rectangle spécifié en utilisant le stylo spécifié sur la surface représentée par l'objet actuel.

```cpp
void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, float x, float y, float width, float height)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | Un stylo à utiliser lors du dessin du rectangle |
| x | float | La coordonnée X du coin supérieur gauche du rectangle à dessiner |
| y | float | La coordonnée Y du coin supérieur gauche du rectangle à dessiner |
| width | float | La largeur du rectangle à dessiner |
| height | float | La hauteur du rectangle à dessiner |

## Voir aussi

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawRectangle(const SharedPtr\<Pen\>\&, int, int, int, int) method


Dessine le rectangle spécifié en utilisant le stylo spécifié sur la surface représentée par l'objet actuel.

```cpp
void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, int x, int y, int width, int height)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | Un stylo à utiliser lors du dessin du rectangle |
| x | int | La coordonnée X du coin supérieur gauche du rectangle à dessiner |
| y | int | La coordonnée Y du coin supérieur gauche du rectangle à dessiner |
| width | int | La largeur du rectangle à dessiner |
| height | int | La hauteur du rectangle à dessiner |

## Voir aussi

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawRectangle(const SharedPtr\<Pen\>\&, Rectangle) method


Dessine le rectangle spécifié en utilisant le stylo spécifié sur la surface représentée par l'objet actuel.

```cpp
void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, Rectangle rect)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | Un stylo à utiliser lors du dessin du rectangle |
| rect | Rectangle | Un objet [Rectangle](../../rectangle/) qui spécifie l’emplacement et la taille du rectangle à dessiner |

## Voir aussi

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Rectangle](../../rectangle/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
