Calculate the width of 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 CalculateWidth( string text, double fontSize ) |
| Visual Basic |
|---|
Public Function CalculateWidth ( _ text As String, _ fontSize 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.