Gets the width of the specified string in pixels when drawn with current Font.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public double GetTextWidth(
	string text
)
VB
Public Function GetTextWidth ( 
	text As String
) As Double

Parameters

text
Type: System.String
The string to measure.

Return Value

Type: Double
The width of the specified string in pixels when drawn with current Font.

See Also