Click or drag to resize
ElementsRenderer.MeasureString Method
Measures the size of the specified string when rendered with the specified font.

Namespace: ExpertPdf.HtmlToPdf.PdfDocument
Assembly: ExpertPdf.HtmlToPdf (in ExpertPdf.HtmlToPdf.dll) Version: 11.0.0
Syntax
public SizeF MeasureString(
	string text,
	PdfFont font
)

Parameters

text
Type: System.String
String to measure.
font
Type: ExpertPdf.HtmlToPdf.PdfDocument.PdfFont
The font used to render the string.

Return Value

Type: SizeF
The size of the string.
See Also