PdfCanvas.GetTextHeight Method

Gets the height of a text 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 GetTextHeight()
VB
Public Function GetTextHeight As Double

Return Value

Type: Double
The height of the specified string in default user space units when drawn with current Font.

Remarks

By default, user space unit is 1/72 inch. When this canvas is taken from PdfPage, user space unit depends on the UserUnit property.

See Also