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