In This Topic
Calculates the height of the content based on the specified width and style.
Syntax
'Declaration
Public Function GetHeight( _
ByVal As System.Drawing.Graphics, _
ByVal As System.Integer, _
ByVal As System.String, _
ByVal As System.Drawing.Image _
) As System.Integer
public System.int GetHeight(
System.Drawing.Graphics ,
System.int ,
System.string ,
System.Drawing.Image
)
Parameters
- g
- A System.Drawing.Graphics object that encapsulates a GDI+ drawing surface.
- width
- The content width.
- str
- String to measure.
- img
- Image to measure.
Return Value
Calculated height.
See Also