'Declaration
Public Overloads Shared Function GetStringInBox( _ ByVal s As String, _ ByVal font As PdfFont, _ ByVal width As Double, _ ByVal height As Double, _ ByVal forceLongWordsWrap As Boolean _ ) As String
'Usage
Dim s As String Dim font As PdfFont Dim width As Double Dim height As Double Dim forceLongWordsWrap As Boolean Dim value As String value = PdfTextEngine.GetStringInBox(s, font, width, height, forceLongWordsWrap)
Parameters
- s
- String to wrap in the box.
- font
- Font used to draw the string.
- width
- The box width.
- height
- The box height.
- forceLongWordsWrap
- True if long words are wrapped at character level if they do not fit entirely on a single line.
Return Value
The number of characters in the string that fit in the given box.