Calculate the height of the given text in points
Namespace: TallComponents.PDF.FontsAssembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1
Syntax
| C# |
|---|
public double CalculateHeight( string text, double fontSize, double textWidth ) |
| Visual Basic |
|---|
Public Function CalculateHeight ( _ text As String, _ fontSize As Double, _ textWidth As Double _ ) As Double |
Parameters
- text
- Type: System..::..String
The text that the height will be calculated of.
- fontSize
- Type: System..::..Double
The font size.
- textWidth
- Type: System..::..Double
The maximum width of the text.
Return Value
The height in points.
Remarks
The the text will be wrapped so that it fits in the specified width.