Measures the text string with the currently selected font.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Function MeasureText( _
ByVal strText As System.String _
) As SizeF |
C# | |
---|
public SizeF MeasureText(
System.string strText
) |
Parameters
- strText
- The text string to measure.
Requirements
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
See Also