Skip to main content
A newer version of this page is available. .

BrickGraphics.MeasureString Method

Name Parameters Description
MeasureString(String, Font, Int32, StringFormat, GraphicsUnit) static text, font, width, stringFormat, pageUnit Measures the height and width of the specified text string.
MeasureString(String, Font, Int32, StringFormat) text, font, width, stringFormat Calculates the length of a specified text.
MeasureString(String, Font) text, font Calculates the length of a specified text.
MeasureString(String, Int32, StringFormat) text, width, stringFormat Measures the specified string when drawn with the specified maximum width and format.
MeasureString(String, Int32) text, width Measures the specified string when drawn with the specified maximum width.
MeasureString(String) text Measures the specified string when drawn.