[]
Calculates the width of the content based on the specified height and style.
public int GetContentWidth(Graphics g, int height, string str, Image img)
Public Function GetContentWidth(g As Graphics, height 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 | height | The content height. |
| string | str | String to measure. |
| Image | img | Image to measure. |
| Type | Description |
|---|---|
| int | Calculated width. |