[]
Draws a string using a specified TextFormat at a specified location.
public void DrawString(string text, TextFormat textFormat, PointF location)
| Type | Name | Description |
|---|---|---|
| string | text | The string to draw. |
| TextFormat | textFormat | The text format to use. |
| PointF | location | The location to draw at. |
Draws a string using a specified attributes at a specified location.
public void DrawString(string text, Font font, float fontSize, Color foreColor, PointF location)
| Type | Name | Description |
|---|---|---|
| string | text | The string to draw. |
| Font | font | The font. |
| float | fontSize | The font size. |
| Color | foreColor | The text color. |
| PointF | location | The location to draw at. |
Draws a string using a specified TextFormat within a rectangle using a specified text alignment, paragraph alignment and word wrapping flag.
public void DrawString(string text, TextFormat textFormat, RectangleF rect, TextAlignment textAlignment = TextAlignment.Leading, ParagraphAlignment paragraphAlignment = ParagraphAlignment.Near, bool wordWrap = true)
| Type | Name | Description |
|---|---|---|
| string | text | The string to draw. |
| TextFormat | textFormat | The text format to use. |
| RectangleF | rect | The target rectangle. |
| TextAlignment | textAlignment | The text alignment (Leading by default). |
| ParagraphAlignment | paragraphAlignment | The paragraph alignment (Near by default). |
| bool | wordWrap | Whether to use word wrapping (true by default). |