Metodo System::Drawing::Graphics::DrawString
Contenuti
[
Nascondere
]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.
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 oggetto Brush 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>& | Specifica il formato della stringa |
Vedi anche
- Class String
- Typedef SharedPtr
- Class Font
- Class Brush
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Font 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.
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 oggetto Brush da utilizzare per il disegno |
| topLeft | PointF | Specifica la posizione dell’angolo superiore sinistro della stringa disegnata |
| stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | Specifica il formato della stringa |
Vedi anche
- Class String
- Typedef SharedPtr
- Class Font
- Class Brush
- Class PointF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Font 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 usando il font e il pennello specificati.
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 oggetto Brush da utilizzare per il disegno |
| layoutRectangle | RectangleF | Specifica un rettangolo in cui disegnare la stringa |
| stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | Specifica il formato della stringa |
Vedi anche
- Class String
- Typedef SharedPtr
- Class Font
- Class Brush
- Class RectangleF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Font for C++