'Declaration
Public Overloads Function MeasureString( _
ByVal As System.String, _
ByVal As System.Drawing.Font, _
ByVal As System.Single, _
ByVal As System.Drawing.StringFormat, _
Optional ByVal As System.Integer _
) As System.Drawing.SizeF
public System.Drawing.SizeF MeasureString(
System.string ,
System.Drawing.Font ,
System.float ,
System.Drawing.StringFormat ,
System.int
)
Parameters
- text
- String to measure.
- font
- System.Drawing.Font object that defines the appearance and size of the text.
- width
- Maximum width of the string.
- sf
- A System.Drawing.StringFormat object that determines whether word wrapping is allowed.
- firstChar
Return Value
The size of the string expressed in points.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2