[]
Calculates the height of the content based on the specified width and style.
public int GetContentHeight(Graphics g, int width, string str, Image img)
Public Function GetContentHeight(g As Graphics, width As Integer, str As String, img As Image) As Integer
| Type | Name | Description |
|---|---|---|
| Graphics | g | A Graphics object that encapsulates a GDI+ drawing surface. |
| int | width | The content width. |
| string | str | String to measure. |
| Image | img | Image to measure. |
| Type | Description |
|---|---|
| int | Calculated height. |