Skip to content

PdfTextEngine.WrapString Method

Overloads

Name Description
WrapString(String,PdfFont,Double) Wraps the string at the given width.
WrapString(String,PdfFont,Double,Boolean) Wraps the string at the given width.
WrapString(String,PdfFont,PdfStringLayoutOptions) Wraps the string at the given width.

WrapString(String,PdfFont,Double)

Wraps the string at the given width.

C#
public static PdfTextLineCollection WrapString(string s, PdfFont font, double width)

Parameters

s String

String to wrap.

font PdfFont

Font used to draw the text.

width Double

Maximum width for wrapping.

WrapString(String,PdfFont,Double,Boolean)

Wraps the string at the given width.

C#
public static PdfTextLineCollection WrapString(string s, PdfFont font, double width, bool forceLongWordsWrap)

Parameters

s String

String to wrap.

font PdfFont

Font used to draw the text.

width Double

Maximum width for wrapping.

forceLongWordsWrap Boolean

True if long words are wrapped at character level if they do not fit entirely on a single line.

WrapString(String,PdfFont,PdfStringLayoutOptions)

Wraps the string at the given width.

C#
public static PdfTextLineCollection WrapString(string s, PdfFont font, PdfStringLayoutOptions stringLayoutOptions)

Parameters

s String

String to wrap.

font PdfFont

Font used to draw the text.

stringLayoutOptions PdfStringLayoutOptions

Options for text layout.