Click or drag to resize
Pdf Library for .NET

PdfFontGetTextWidth Method

Get the width in points of the specified string.

Namespace:  SelectPdf
Assembly:  Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 23.1
Syntax
public float GetTextWidth(
	string text
)

Parameters

text
Type: SystemString
The string to be measured.

Return Value

Type: Single
The width of the string in points.
See Also