Search Results for

    Show / Hide Table of Contents

    TRichString.FromHtml Method

    Returns a new TRichString from an HTML text. Note that only some tags from HTML are converted, the ones that do not have correspondence on Excel rich text will be discarded.Note: This method is for advanced uses only. Normally you would just use ExcelFile.SetCellFromHtml(Int32, Int32, String, Int32)

    Syntax

    Namespace: FlexCel.Core

    public static TRichString FromHtml(String HtmlString, TFlxFormat aCellFormat, ExcelFile aWorkbook)

    Parameters

    <-> Parameter Type Description
    HtmlString String Html string we want to convert.
    aCellFormat TFlxFormat Original format of the cell where we want to enter the string. Note that depending on the starting cell, the Rich string will be different.
    For example, if you have a cell with Red text and add a "hello <b> world" string, then resulting RichString will include a RED bold "world" string
    aWorkbook ExcelFile File where this string will be added.

    Returns

    A TRichString containing the converted Html.

    See also

    • TRichString
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com