Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextRenderer.MeasureText Method

Measures the specified text when drawn with the specified font.

Name Description
TextRenderer.MeasureText (String, Font) Provides the size, in pixels, of the specified text when drawn with the specified font.
TextRenderer.MeasureText (IDeviceContext, String, Font) Provides the size, in pixels, of the specified text drawn with the specified font in the specified device context.
TextRenderer.MeasureText (String, Font, Size) Provides the size, in pixels, of the specified text when drawn with the specified font, using the specified size to create an initial bounding rectangle.
TextRenderer.MeasureText (IDeviceContext, String, Font, Size) Provides the size, in pixels, of the specified text when drawn with the specified font in the specified device context, using the specified size to create an initial bounding rectangle for the text.
TextRenderer.MeasureText (String, Font, Size, TextFormatFlags) Provides the size, in pixels, of the specified text when drawn with the specified font and formatting instructions, using the specified size to create the initial bounding rectangle for the text.
TextRenderer.MeasureText (IDeviceContext, String, Font, Size, TextFormatFlags) Provides the size, in pixels, of the specified text when drawn with the specified device context, font, and formatting instructions, using the specified size to create the initial bounding rectangle for the text.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.