[]
Draw string at specified position.
public void DrawString(string s, double x, double y)
| Type | Name | Description |
|---|---|---|
| string | s | String to draw. |
| double | x | X-coordinate of string. |
| double | y | Y-coordinate of string. |
Draw string at specified area with word wrap.
public void DrawString(string s, double x, double y, double w, double h, byte horizontal = 0, byte vertical = 0)
| Type | Name | Description |
|---|---|---|
| string | s | String to draw. |
| double | x | X-coordinate of string. |
| double | y | Y-coordinate of string. |
| double | w | Rendering width. |
| double | h | Rendering height. |
| byte | horizontal | Horizontal alignment (see alignment type). |
| byte | vertical | Vertical alignment (see alignment type). |
The alignment types: 00 - near, left or top alignment (by default) 01 - center or middle alignment 02 - far, right or bottom alignment 03 - justify or stretch alignment
Draw string at specified area with word wrap.
public void DrawString(string s, RectangleF rc, TextAlignType horizontal = TextAlignType.Far, TextAlignType vertical = TextAlignType.Far)
| Type | Name | Description |
|---|---|---|
| string | s | String to draw. |
| RectangleF | rc | Rectangle for text drawing in pixels. |
| TextAlignType | horizontal | Horizontal text alignment. |
| TextAlignType | vertical | Vertical text alignment. |