System::Drawing::Graphics::DrawString methode
inhoud
[
verbergen
]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.
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 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
- Typedef SharedPtr
- Class Font
- Class Brush
- Class 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.
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 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
- Typedef SharedPtr
- Class Font
- Class Brush
- Class PointF
- Class 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.
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 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
- Typedef SharedPtr
- Class Font
- Class Brush
- Class RectangleF
- Class StringFormat
- Class Graphics
- Namespace System::Drawing
- Library Aspose.Page for C++