## Graphics::DrawString(const String\&, const SharedPtr\<Font\>\&, const SharedPtr\<Brush\>\&, float, float, const System::SharedPtr\<System::Drawing::StringFormat\>\&) method


Tekent de opgegeven tekenreeks op de opgegeven locatie met het opgegeven lettertype en de opgegeven penseel.

```cpp
void System::Drawing::Graphics::DrawString(const String &str, const SharedPtr<Font> &font, const SharedPtr<Brush> &brush, float x, float y, const System::SharedPtr<System::Drawing::StringFormat> &stringFormat=nullptr)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| str | const String\& | De tekenreeks om te tekenen |
| lettertype | const SharedPtr\<Font\>\& | Een lettertype om te gebruiken |
| brush | const SharedPtr\<Brush\>\& | Een [Brush](../../brush/) object om te gebruiken voor het tekenen |
| x | float | De X-coördinaat van de locatie van de linkerbovenhoek van de getekende tekenreeks |
| y | float | De Y-coördinaat van de locatie van de linkerbovenhoek van de getekende tekenreeks |
| stringFormat | const System::SharedPtr\<System::Drawing::StringFormat\>\& | Specificeert het formaat van de tekenreeks |

## Zie ook

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../font/)
* Class [Brush](../../brush/)
* Class [StringFormat](../../stringformat/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawString(const String\&, const SharedPtr\<Font\>\&, const SharedPtr\<Brush\>\&, PointF, const System::SharedPtr\<System::Drawing::StringFormat\>\&) method


Tekent de opgegeven tekenreeks op de opgegeven locatie met het opgegeven lettertype en de opgegeven penseel.

```cpp
void System::Drawing::Graphics::DrawString(const String &str, const SharedPtr<Font> &font, const SharedPtr<Brush> &brush, PointF topLeft, const System::SharedPtr<System::Drawing::StringFormat> &stringFormat=nullptr)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| str | const String\& | De tekenreeks om te tekenen |
| lettertype | const SharedPtr\<Font\>\& | Een lettertype om te gebruiken |
| brush | const SharedPtr\<Brush\>\& | Een [Brush](../../brush/) object om te gebruiken voor het tekenen |
| topLeft | PointF | Specificeert de locatie van de linkerbovenhoek van de getekende tekenreeks |
| stringFormat | const System::SharedPtr\<System::Drawing::StringFormat\>\& | Specificeert het formaat van de tekenreeks |

## Zie ook

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../font/)
* Class [Brush](../../brush/)
* Class [PointF](../../pointf/)
* Class [StringFormat](../../stringformat/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawString(const String\&, const SharedPtr\<Font\>\&, const SharedPtr\<Brush\>\&, RectangleF, const System::SharedPtr\<System::Drawing::StringFormat\>\&) method


Tekent de opgegeven tekenreeks in het opgegeven rechthoek met het opgegeven lettertype en penseel.

```cpp
void System::Drawing::Graphics::DrawString(const String &str, const SharedPtr<Font> &font, const SharedPtr<Brush> &brush, RectangleF layoutRectangle, const System::SharedPtr<System::Drawing::StringFormat> &stringFormat=nullptr)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| str | const String\& | De tekenreeks om te tekenen |
| lettertype | const SharedPtr\<Font\>\& | Een lettertype om te gebruiken |
| brush | const SharedPtr\<Brush\>\& | Een [Brush](../../brush/) object om te gebruiken voor het tekenen |
| layoutRectangle | RectangleF | Specificeert een rechthoek om de tekenreeks in te tekenen |
| stringFormat | const System::SharedPtr\<System::Drawing::StringFormat\>\& | Specificeert het formaat van de tekenreeks |

## Zie ook

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