Search Results for

    Show / Hide Table of Contents

    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
    object
    HtmlLayoutUtils
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    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
    Type Name Description
    List<TGlyphPos> positions
    double remaining
    double lineWidthLimit
    HashSet<int> possibleBreaks
    string line
    bool lineHasContent
    Returns
    Type Description
    List<List<TGlyphPos>>
    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
    Type Name Description
    List<TGlyphPos> positions
    double remaining
    double lineWidthLimit
    HashSet<int> possibleBreaks
    string line
    bool lineHasContent
    Returns
    Type Description
    List<List<TGlyphPos>>
    View Source

    DividesIntoLines(string)

    Declaration
    public static List<LineSubText> DividesIntoLines(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    List<LineSubText>
    View Source

    FillPossibleLineBreaksString(string)

    Declaration
    public static HashSet<int> FillPossibleLineBreaksString(string line)
    Parameters
    Type Name Description
    string line
    Returns
    Type Description
    HashSet<int>
    • View Source
    In this article
    Back to top Generated by DocFX