Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Graphics.MeasureString Method

Measures the specified string when drawn with the specified Font.

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.

Community Additions

ADD
Show:
© 2015 Microsoft