BrickGraphics.MeasureString(String, DXFont) Method
Calculates the length of a specified text.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
text | String | The text to measure. |
font | DXFont | An object that contains font information. |
Returns
Type | Description |
---|---|
SizeF | The text length. |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MeasureString(String, DXFont) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also