Click or drag to resize
Pdf Library for .NET

PdfFontGetTextSize Method

Gets the size (width and height) in points of the specified string when rendered with this font.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public SizeF GetTextSize(
	string text
)

Parameters

text  String
The string to be measured.

Return Value

SizeF
A SizeF with the width and height in points.
See Also