Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AppearanceObject.CalcTextSize Method

Name Parameters Description
CalcTextSize(GraphicsCache, StringFormatInfo, String, Int32, Int32, out Boolean) cache, sf, s, width, height, isCropped Calculates the string size.
CalcTextSize(GraphicsCache, StringFormatInfo, String, Int32, Int32) cache, sf, s, width, height Calculates the string size.
CalcTextSize(GraphicsCache, StringFormatInfo, String, Int32) cache, sf, s, width Calculates the string size.
CalcTextSize(GraphicsCache, StringFormat, String, Int32, Int32, out Boolean) cache, sf, s, width, height, isCropped Calculates the string size.
CalcTextSize(GraphicsCache, StringFormat, String, Int32, Int32) cache, sf, s, width, height Calculates the string size.
CalcTextSize(GraphicsCache, StringFormat, String, Int32) cache, sf, s, width Calculates the size of the specified string drawn with the specified StringFormat object.
CalcTextSize(GraphicsCache, String, Int32) cache, s, width Calculates the size of the specified string.
CalcTextSize(Graphics, StringFormatInfo, String, Int32) g, sf, s, width Calculates the size of the specified string drawn with the specified StringFormat object.
CalcTextSize(Graphics, StringFormat, String, Int32, Int32, out Boolean) g, sf, s, width, height, isCropped Calculates the size of the specified string when it’s drawn with the specified font, fitting the string into a clipping rectangle. Allows you to determine whether the string does not fit the clipping rectangle.
CalcTextSize(Graphics, StringFormat, String, Int32, Int32) g, sf, s, width, height Calculates the size of the specified string drawn with the specified format, fitting the string into a clipping rectangle.
CalcTextSize(Graphics, StringFormat, String, Int32) g, sf, s, width Calculates the size of the specified string drawn with the specified StringFormat object.
CalcTextSize(Graphics, String, Int32) g, s, width Calculates the size of the specified string.