'Declaration
Public Overloads Shared Function GetStringHeight( _ ByVal s As String, _ ByVal font As PdfFont, _ ByVal width As Double, _ ByVal forceLongWordsWrap As Boolean _ ) As Double
'Usage
Dim s As String Dim font As PdfFont Dim width As Double Dim forceLongWordsWrap As Boolean Dim value As Double value = PdfTextEngine.GetStringHeight(s, font, width, forceLongWordsWrap)
Parameters
- s
- String to measure.
- font
- Font used to draw the string.
- width
- Maximum width for wrapping.
- forceLongWordsWrap
- True if long words are wrapped at character level if they do not fit entirely on a single line.
Return Value
The total height of the text lines.