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


Disegna la stringa specificata nella posizione specificata usando il font e il pennello specificati.

```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)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | La stringa da disegnare |
| font | const SharedPtr\<Font\>\& | Un font da utilizzare |
| brush | const SharedPtr\<Brush\>\& | Un [Brush](../../brush/) oggetto da utilizzare per il disegno |
| x | float | La coordinata X della posizione dell'angolo superiore sinistro della stringa disegnata |
| y | float | La coordinata Y della posizione dell'angolo superiore sinistro della stringa disegnata |
| stringFormat | const System::SharedPtr\<System::Drawing::StringFormat\>\& | Specificato il formato della stringa |

## Vedi anche

* 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


Disegna la stringa specificata nella posizione specificata usando il font e il pennello specificati.

```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)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | La stringa da disegnare |
| font | const SharedPtr\<Font\>\& | Un font da utilizzare |
| brush | const SharedPtr\<Brush\>\& | Un [Brush](../../brush/) oggetto da utilizzare per il disegno |
| topLeft | PointF | Specifica la posizione dell'angolo superiore sinistro della stringa disegnata |
| stringFormat | const System::SharedPtr\<System::Drawing::StringFormat\>\& | Specificato il formato della stringa |

## Vedi anche

* 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


Disegna la stringa specificata nel rettangolo specificato utilizzando il carattere e il pennello specificati.

```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)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| str | const String\& | La stringa da disegnare |
| font | const SharedPtr\<Font\>\& | Un font da utilizzare |
| brush | const SharedPtr\<Brush\>\& | Un [Brush](../../brush/) oggetto da utilizzare per il disegno |
| layoutRectangle | RectangleF | Specifica un rettangolo in cui disegnare la stringa |
| stringFormat | const System::SharedPtr\<System::Drawing::StringFormat\>\& | Specificato il formato della stringa |

## Vedi anche

* 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++](../../../)
