[]
Measures an HTML string when drawn with a given Font object into a rectangle with the specified width.
public SizeF MeasureStringHtml(string text, Font font, float width)
Public Function MeasureStringHtml(text As String, font As Font, width As Single) As SizeF
| Type | Name | Description |
|---|---|---|
| string | text | String to measure. |
| Font | font | Font object that defines the appearance and size of the text. |
| float | width | Maximum width of the string. |
| Type | Description |
|---|---|
| SizeF | The size of the string expressed in points. |
This method is similar to MeasureString(string, Font, float), except the
text parameter contains an HTML string instead of plain text.
For details, see the DrawStringHtml(string, Font, Brush, RectangleF) method.
Measures an HTML string when drawn with a given Font object.
public SizeF MeasureStringHtml(string text, Font font)
Public Function MeasureStringHtml(text As String, font As Font) As SizeF
| Type | Name | Description |
|---|---|---|
| string | text | String to measure. |
| Font | font | Font object that defines the appearance and size of the text. |
| Type | Description |
|---|---|
| SizeF | The size of the string expressed in points. |