[]
Draws a string using a specified TextFormat at a specified location.
public void DrawString(string text, TextFormat textFormat, PointF location)
Public Sub DrawString(text As String, textFormat As TextFormat, location As PointF)
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)
Public Sub DrawString(text As String, font As Font, fontSize As Single, foreColor As Color, location As PointF)
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)
Public Sub DrawString(text As String, textFormat As TextFormat, rect As RectangleF, Optional textAlignment As TextAlignment = TextAlignment.Leading, Optional paragraphAlignment As ParagraphAlignment = ParagraphAlignment.Near, Optional wordWrap As Boolean = 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). |