Click or drag to resize
Pdf Library for .NET

PdfFontGetTextWidth Method

Gets the width in points of the specified string.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public float GetTextWidth(
	string text
)

Parameters

text  String
The string to be measured.

Return Value

Single
The width of the string in points.
See Also