[]
Measure string for this document.
public static SizeF MeasureString(string text, Font font, float width, StringFormat sf, int firstChar)
| Type | Name | Description |
|---|---|---|
| string | text | The drawing string. |
| Font | font | The drawing font. |
| float | width | The drawing width or -1 for default. |
| StringFormat | sf | The drawing string format. |
| int | firstChar | The zero-based starting character position of a string. |
| Type | Description |
|---|---|
| SizeF | The size, in points, of the string specified as drawn with the font parameter. |
Measure string for this document.
public SizeF MeasureString(string text, Font font)
| Type | Name | Description |
|---|---|---|
| string | text | The drawing string. |
| Font | font | The drawing font. |
| Type | Description |
|---|---|
| SizeF | The size, in points, of the string specified as drawn with the font parameter. |
Measure string for this document.
public SizeF MeasureString(string text, Font font, float width)
| Type | Name | Description |
|---|---|---|
| string | text | The drawing string. |
| Font | font | The drawing font. |
| float | width | The drawing width or -1 for default. |
| Type | Description |
|---|---|
| SizeF | The size, in points, of the string specified as drawn with the font parameter. |
Measure string for this document.
public SizeF MeasureString(string text, Font font, float width, StringFormat sf)
| Type | Name | Description |
|---|---|---|
| string | text | The drawing string. |
| Font | font | The drawing font. |
| float | width | The drawing width or -1 for default. |
| StringFormat | sf | The drawing string format. |
| Type | Description |
|---|---|
| SizeF | The size, in points, of the string specified as drawn with the font parameter. |