[]
Calculates the new size of the content based on the specified size and style.
public SizeF GetSize(Graphics g, SizeF sz, string str, Image img)
| Type | Name | Description |
|---|---|---|
| Graphics | g | A Graphics object that encapsulates a GDI+ drawing surface. |
| SizeF | sz | The initial content size. |
| string | str | String to measure. |
| Image | img | Image to measure. |
| Type | Description |
|---|---|
| SizeF | Calculated size. |
Calculates the new size of the content based on the specified width and style.
public Size GetSize(Graphics g, Size sz, string str, Image img)
| Type | Name | Description |
|---|---|---|
| Graphics | g | A Graphics object that encapsulates a GDI+ drawing surface. |
| Size | sz | The initial content size. |
| string | str | String to measure. |
| Image | img | Image to measure. |
| Type | Description |
|---|---|
| Size | Calculated size. |