GraphicsCache.CalcTextSize(String, Font, Int32) Method
In This Article
Calculates the size of the specified string when it’s drawn with the specified font.
Namespace: DevExpress.Utils.Drawing
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
text | String | A String value which represents a string to measure. |
font | Font | A Font object which defines the font and the associated settings of the text. |
max |
Int32 | An integer value specifying the maximum width of the string (in pixels). |
#Returns
Type | Description |
---|---|
Size |
A Size |
See Also