PdfGraphics.MeasureString(String, Font, PdfStringFormat) Method
Measures the specified string when drawn with the specified Font and formatted with the specified PdfStringFormat.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v19.2.Drawing.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
text | String | A String to measure. |
font | Font | A Font object that defines the text format of the string. |
format | PdfStringFormat | A PdfStringFormat object that represents formatting information, such as line spacing, for the string. |
Returns
Type | Description |
---|---|
SizeF | A SizeF structure that represents the measured size of the string. |
See Also