BrickGraphics.MeasureString(String, Int32, DXStringFormat) 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 SizeF MeasureString(
string text,
int width,
DXStringFormat stringFormat
)
#Parameters
Name | Type | Description |
---|---|---|
text | String | String to measure. |
width | Int32 | The maximum width of the measured string. |
string |
DXString |
An object that contains string format parameters. |
#Returns
Type | Description |
---|---|
Size |
The string size, measured in pixels. |
See Also