BrickGraphics.MeasureString(String, DXFont, Int32, DXStringFormat, DXGraphicsUnit) Method
In This Article
Measures the specified string when drawn.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
public static SizeF MeasureString(
string text,
DXFont font,
int width,
DXStringFormat stringFormat,
DXGraphicsUnit pageUnit
)
#Parameters
Name | Type | Description |
---|---|---|
text | String | String to measure. |
font | DXFont | An object that contains font information. |
width | Int32 | The maximum width of the measured string. |
string |
DXString |
An object that contains string format parameters. |
page |
DXGraphics |
An enumeration value that specifies the unit of measurement for the return value. |
#Returns
Type | Description |
---|---|
Size |
The string size, measured in pixels. |
See Also