Class TextLayout
Line breaking and rendering of paragraphs. Also usable for simple multi-line text.
public static class TextLayout
- Inheritance
-
TextLayout
- Inherited Members
Properties
DefaultHyphenator
Hyphenator used by paragraphs without their own Hyphenator (default none).
public static IHyphenator? DefaultHyphenator { get; set; }
Property Value
Methods
BreakLines(string, PdfFont, double, double)
Breaks plain text into lines that fit into width points.
public static IReadOnlyList<string> BreakLines(string text, PdfFont font, double fontSize, double width)
Parameters
Returns
MeasureHeight(string, PdfFont, double, double, double)
Measures the height of plain text wrapped to width.
public static double MeasureHeight(string text, PdfFont font, double fontSize, double width, double lineSpacing = 1.15)