Link Search Menu Expand Document

FontGetTextWidth Method

Get the width in pixels of the specified string.

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
Syntax
public float GetTextWidth(
	string text
)

Parameters

text
Type: SystemString
The measured string.

Return Value

Type: Single
The width of the string in document points (1/72").
See Also

Reference