Get the width in points of the specified string when rendered in PDF using this font.

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public float GetTextWidth(
	string text
)
Visual Basic
Public Function GetTextWidth ( 
	text As String
) As Single
Visual C++
public:
float GetTextWidth(
	String^ text
)

Parameters

text
Type: System..::..String
The measured string.

Return Value

Type: Single
The width of the string in points.

See Also