Measures the specified string when drawn with current Font.

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

Syntax

C#
public PdfSize MeasureText(
	string text
)
VB
Public Function MeasureText ( 
	text As String
) As PdfSize

Parameters

text
Type: System.String
The string to measure.

Return Value

Type: PdfSize
A PdfSize structure that represents the size, in pixels, of the string specified by the text parameter as drawn with the current Font.

See Also