Click or drag to resize
Pdf Library for .NET

PdfCanvasMeasureString Method

Measures the size of the specified string when rendered with the specified font.

Namespace: SelectPdf
Assembly: Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 26.2
Syntax
public SizeF MeasureString(
	string text,
	PdfFont font
)

Parameters

text  String
String to measure.
font  PdfFont
The font used to render the string.

Return Value

SizeF
The size of the string.
See Also