Search Results for

    Show / Hide Table of Contents

    Class HtmlTextRenderer

    Inheritance
    System.Object
    HtmlTextRenderer
    Namespace: FastReport.Utils
    Assembly: FastReport.Base.dll
    Syntax
    public class HtmlTextRenderer : IDisposable

    Constructors

    HtmlTextRenderer(HtmlTextRenderer.RendererContext)

    Initializes a new instance of the HTML text renderer with a specified rendering context.

    Declaration
    public HtmlTextRenderer(HtmlTextRenderer.RendererContext context)
    Parameters
    Type Name Description
    HtmlTextRenderer.RendererContext context

    The rendering context for the HTML renderer.

    HtmlTextRenderer(String, IGraphics, FontFamily, Single, FontStyle, Color, Color, RectangleF, Boolean, StringFormat, HorzAlign, VertAlign, ParagraphFormat, Boolean, Single, Single, InlineImageCache, Boolean, Boolean)

    Declaration
    public HtmlTextRenderer(string text, IGraphics g, FontFamily font, float size, FontStyle style, Color color, Color underlineColor, RectangleF rect, bool underlines, StringFormat format, HorzAlign horzAlign, VertAlign vertAlign, ParagraphFormat paragraphFormat, bool forceJustify, float scale, float fontScale, InlineImageCache cache, bool isPrinting = false, bool isDifferentTabPositions = false)
    Parameters
    Type Name Description
    System.String text
    IGraphics g
    FontFamily font
    System.Single size
    FontStyle style
    Color color
    Color underlineColor
    RectangleF rect
    System.Boolean underlines
    StringFormat format
    HorzAlign horzAlign
    VertAlign vertAlign
    ParagraphFormat paragraphFormat
    System.Boolean forceJustify
    System.Single scale
    System.Single fontScale
    InlineImageCache cache
    System.Boolean isPrinting
    System.Boolean isDifferentTabPositions

    Fields

    CultureInfo

    Declaration
    public static readonly CultureInfo CultureInfo
    Field Value
    Type Description
    System.Globalization.CultureInfo

    Properties

    Angle

    Gets the angle of rotation.

    Declaration
    public int Angle { get; }
    Property Value
    Type Description
    System.Int32

    Backgrounds

    Declaration
    public IEnumerable<HtmlTextRenderer.RectangleFColor> Backgrounds { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<HtmlTextRenderer.RectangleFColor>

    DisplayRect

    Declaration
    public RectangleF DisplayRect { get; }
    Property Value
    Type Description
    RectangleF

    FontScale

    Declaration
    public float FontScale { get; set; }
    Property Value
    Type Description
    System.Single

    HorzAlign

    Declaration
    public HorzAlign HorzAlign { get; }
    Property Value
    Type Description
    HorzAlign

    ParagraphFormat

    Declaration
    public ParagraphFormat ParagraphFormat { get; }
    Property Value
    Type Description
    ParagraphFormat

    Paragraphs

    Declaration
    public IEnumerable<HtmlTextRenderer.Paragraph> Paragraphs { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<HtmlTextRenderer.Paragraph>

    RightToLeft

    Declaration
    public bool RightToLeft { get; }
    Property Value
    Type Description
    System.Boolean

    Scale

    Declaration
    public float Scale { get; }
    Property Value
    Type Description
    System.Single

    Stikeouts

    Declaration
    public IEnumerable<HtmlTextRenderer.LineFColor> Stikeouts { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<HtmlTextRenderer.LineFColor>

    TabOffset

    Declaration
    public float TabOffset { get; }
    Property Value
    Type Description
    System.Single

    TabPositions

    Declaration
    public float[] TabPositions { get; }
    Property Value
    Type Description
    System.Single[]

    TabSize

    Declaration
    public float TabSize { get; }
    Property Value
    Type Description
    System.Single

    Underlines

    Declaration
    public IEnumerable<HtmlTextRenderer.LineFColor> Underlines { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<HtmlTextRenderer.LineFColor>

    WidthRatio

    Gets the width ratio of the object.

    Declaration
    public float WidthRatio { get; }
    Property Value
    Type Description
    System.Single

    WordWrap

    Declaration
    public bool WordWrap { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    AddUnknownWord(List<HtmlTextRenderer.CharWithIndex>, HtmlTextRenderer.Paragraph, HtmlTextRenderer.StyleDescriptor, Int32, ref HtmlTextRenderer.Line, ref HtmlTextRenderer.Word, ref Single, ref Int32)

    Declaration
    public void AddUnknownWord(List<HtmlTextRenderer.CharWithIndex> w, HtmlTextRenderer.Paragraph paragraph, HtmlTextRenderer.StyleDescriptor style, int charIndex, ref HtmlTextRenderer.Line line, ref HtmlTextRenderer.Word word, ref float width, ref int tabIndex)
    Parameters
    Type Name Description
    System.Collections.Generic.List<HtmlTextRenderer.CharWithIndex> w
    HtmlTextRenderer.Paragraph paragraph
    HtmlTextRenderer.StyleDescriptor style
    System.Int32 charIndex
    HtmlTextRenderer.Line line
    HtmlTextRenderer.Word word
    System.Single width
    System.Int32 tabIndex

    CalcHeight()

    Declaration
    public float CalcHeight()
    Returns
    Type Description
    System.Single

    CalcHeight(out Int32)

    Declaration
    public float CalcHeight(out int charsFit)
    Parameters
    Type Name Description
    System.Int32 charsFit
    Returns
    Type Description
    System.Single

    CalcWidth()

    Declaration
    public float CalcWidth()
    Returns
    Type Description
    System.Single

    Dispose()

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Back to top © 1998-2025 Copyright Fast Reports Inc.