DrawString()
Contents
[
Hide
]Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, PointF, const System::SharedPtr<System::Drawing::StringFormat>&) method
Draws the specified string at the specified location using the specified font and brush.
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)
Arguments
Parameter | Type | Description |
---|---|---|
str | const String& | The string to draw |
font | const SharedPtr<Font>& | A font to use |
brush | const SharedPtr<Brush>& | A Brush object to use for drawing |
topLeft | PointF | Specifies the location of the upper left corner of the drawn string |
stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | Specified the format of the string |
Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, RectangleF, const System::SharedPtr<System::Drawing::StringFormat>&) method
Draws the specified string in the specified rectangle using the specified font and brush.
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)
Arguments
Parameter | Type | Description |
---|---|---|
str | const String& | The string to draw |
font | const SharedPtr<Font>& | A font to use |
brush | const SharedPtr<Brush>& | A Brush object to use for drawing |
layoutRectangle | RectangleF | Specifies a rectangle to draw the string in |
stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | Specified the format of the string |
Graphics::DrawString(const String&, const SharedPtr<Font>&, const SharedPtr<Brush>&, float, float, const System::SharedPtr<System::Drawing::StringFormat>&) method
Draws the specified string at the specified location using the specified font and brush.
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)
Arguments
Parameter | Type | Description |
---|---|---|
str | const String& | The string to draw |
font | const SharedPtr<Font>& | A font to use |
brush | const SharedPtr<Brush>& | A Brush object to use for drawing |
x | float | The X coordinate of the location of the upper left corner of the drawn string |
y | float | The Y coordinate of the location of the upper left corner of the drawn string |
stringFormat | const System::SharedPtr<System::Drawing::StringFormat>& | Specified the format of the string |
See Also
- Typedef SharedPtr
- Class String
- Class Font
- Class Brush
- Class PointF
- Class StringFormat
- Class Graphics
- Class RectangleF
- Namespace System::Drawing
- Library Aspose.Slides