PdfGraphics.MeasureString(String, Font, SizeF, PdfStringFormat, Single, Single) Method
Measures the specified string when drawn with the specified Font, text layout size, horizontal and vertical resolutions, and format.
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. |
layoutSize | SizeF | A SizeF structure that specifies the maximum layout area for the text. |
format | PdfStringFormat | A PdfStringFormat object that represents formatting information, such as line spacing, for the string. |
dpiX | Single | A Single object that represents the value, in dots per inch, for the horizontal resolution. |
dpiY | Single | A Single object that represents the value, in dots per inch, for the vertical resolution. |
Returns
Type | Description |
---|---|
SizeF | A SizeF structure that represents the measured size of the string. |
See Also