[]
Calculates the width of the content based on the specified height and style.
public int GetWidth(Graphics g, int height, string str, Image img)
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. |