[]
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)
Public Function GetSize(g As Graphics, sz As SizeF, str As String, img As Image) As SizeF
| 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)
Public Function GetSize(g As Graphics, sz As Size, str As String, img As Image) As Size
| 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. |