PdfCanvas.GetTextWidth Method

Gets the width of the specified string in default user space units 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 default user space units when drawn with current Font.

Remarks

By default, user space unit is 1⁄72 inch.

See Also