Graphics.MeasureString Method
Measures the specified string when drawn with the specified Font.
Overload List

Name Description
Graphics.MeasureString (String, Font) Measures the specified string when drawn with the specified Font.

Supported by the .NET Compact Framework.

Graphics.MeasureString (String, Font, Int32) Measures the specified string when drawn with the specified Font.
Graphics.MeasureString (String, Font, SizeF) Measures the specified string when drawn with the specified Font within the specified layout area.
Graphics.MeasureString (String, Font, Int32, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Graphics.MeasureString (String, Font, PointF, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Graphics.MeasureString (String, Font, SizeF, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Graphics.MeasureString (String, Font, SizeF, StringFormat, Int32, Int32) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
See Also

Tags :


Community Content

David M. Kean - MSFT
More information on rendering text with GDI+

For more information on rendering text with GDI+, including how to measure the real size of a character with MeasureString, see the following article:

http://windowsforms.net/articles/gdiptext.aspx

Tags : contentbug

Page view tracker