Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MeasureString Method
Collapse the table of content
Expand the table of content

Graphics.MeasureString Method

Measures the specified string when drawn with the specified Font.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method MeasureString(String, Font) Measures the specified string when drawn with the specified Font.
Public method MeasureString(String, Font, SizeF) Measures the specified string when drawn with the specified Font within the specified layout area.
Public method MeasureString(String, Font, Int32) Measures the specified string when drawn with the specified Font.
Public method MeasureString(String, Font, PointF, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MeasureString(String, Font, SizeF, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MeasureString(String, Font, Int32, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MeasureString(String, Font, SizeF, StringFormat, Int32, Int32) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Top
Show:
© 2015 Microsoft