XFINIUM.PDF Documentation
WrapString(String,PdfFont,Double) Method



Xfinium.Pdf.Graphics.Text Namespace > PdfTextEngine Class > WrapString Method : WrapString(String,PdfFont,Double) Method
String to wrap.
Font used to draw the text.
Maximum width for wrapping.
Wraps the string at the given width.
Syntax
'Declaration
 
Public Overloads Shared Function WrapString( _
   ByVal s As String, _
   ByVal font As PdfFont, _
   ByVal width As Double _
) As PdfTextLineCollection
'Usage
 
Dim s As String
Dim font As PdfFont
Dim width As Double
Dim value As PdfTextLineCollection
 
value = PdfTextEngine.WrapString(s, font, width)
public static PdfTextLineCollection WrapString( 
   string s,
   PdfFont font,
   double width
)
public:
static PdfTextLineCollection^ WrapString( 
   String^ s,
   PdfFont^ font,
   double width
) 

Parameters

s
String to wrap.
font
Font used to draw the text.
width
Maximum width for wrapping.

Return Value

A collection of text lines representing the wrapped text.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfTextEngine Class
PdfTextEngine Members
Overload List