ElementsRendererMeasureString Method |
Measures the size of the specified string when rendered with the specified font.
Namespace:
ExpertPdf.HtmlToPdf.PdfDocument
Assembly:
ephtmltopdf (in ephtmltopdf.dll) Version: 17.0.0
Syntax public SizeF MeasureString(
string text,
PdfFont font
)
Public Function MeasureString (
text As String,
font As PdfFont
) As SizeF
Parameters
- text
- Type: SystemString
String to measure. - font
- Type: ExpertPdf.HtmlToPdf.PdfDocumentPdfFont
The font used to render the string.
Return Value
Type:
SizeFThe size of the string.
See Also