Class HtmlLayoutUtils
Helper routines for laying out HTML text: splitting text into lines, locating
possible line-break positions, and breaking shaped glyph runs into chunks that fit
a given width for both left-to-right and right-to-left text.
Inheritance
HtmlLayoutUtils
Assembly: Reportman.Drawing.dll
Syntax
public static class HtmlLayoutUtils
Methods
View Source
BreakChunksLTR(List<TGlyphPos>, ref double, double, HashSet<int>, string, bool)
Declaration
public static List<List<TGlyphPos>> BreakChunksLTR(List<TGlyphPos> positions, ref double remaining, double lineWidthLimit, HashSet<int> possibleBreaks, string line, bool lineHasContent = false)
Parameters
Returns
View Source
BreakChunksRTL(List<TGlyphPos>, ref double, double, HashSet<int>, string, bool)
Declaration
public static List<List<TGlyphPos>> BreakChunksRTL(List<TGlyphPos> positions, ref double remaining, double lineWidthLimit, HashSet<int> possibleBreaks, string line, bool lineHasContent = false)
Parameters
Returns
View Source
DividesIntoLines(string)
Declaration
public static List<LineSubText> DividesIntoLines(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
View Source
FillPossibleLineBreaksString(string)
Declaration
public static HashSet<int> FillPossibleLineBreaksString(string line)
Parameters
| Type |
Name |
Description |
| string |
line |
|
Returns