[]
Measure string for this document.
public static SizeF MeasureString(string text, Font font, float width, StringFormat sf, int firstChar)
Public Shared Function MeasureString(text As String, font As Font, width As Single, sf As StringFormat, firstChar As Integer) As SizeF
| 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)
Public Function MeasureString(text As String, font As Font) As SizeF
| 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)
Public Function MeasureString(text As String, font As Font, width As Single) As SizeF
| 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)
Public Function MeasureString(text As String, font As Font, width As Single, sf As StringFormat) As SizeF
| 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. |