'Declaration
Public Overloads Shared Function WrapString( _ ByVal s As String, _ ByVal font As PdfFont, _ ByVal width As Double, _ ByVal forceLongWordsWrap As Boolean _ ) As PdfTextLineCollection
'Usage
Dim s As String Dim font As PdfFont Dim width As Double Dim forceLongWordsWrap As Boolean Dim value As PdfTextLineCollection value = PdfTextEngine.WrapString(s, font, width, forceLongWordsWrap)
public static PdfTextLineCollection WrapString( string s, PdfFont font, double width, bool forceLongWordsWrap )
public: static PdfTextLineCollection^ WrapString( String^ s, PdfFont^ font, double width, bool forceLongWordsWrap )
Parameters
- s
- String to wrap.
- font
- Font used to draw the text.
- 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
A collection of text lines representing the wrapped text.