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.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax
public SizeF MeasureString(
	string text,
	PdfFont font
)

Parameters

text
Type: SystemString
String to measure.
font
Type: SelectPdfPdfFont
The font used to render the string.

Return Value

Type: SizeF
The size of the string.
See Also