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