Search Results for

    Show / Hide Table of Contents

    TRichString.ToHtml Method

    Overloads

    • TRichString.ToHtml(ExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, Encoding)
    • TRichString.ToHtml(ExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, Encoding, IHtmlFontEvent)

    TRichString.ToHtml(ExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, Encoding)

    Returns the rich string content as an HTML Formatted string. Note: This method is for advanced uses only. Normally you would just use ExcelFile.GetHtmlFromCell(Int32, Int32, THtmlVersion, THtmlStyle, Encoding)

    Syntax

    Namespace: FlexCel.Core

    public String ToHtml(ExcelFile aWorkbook, TFlxFormat aCellFormat, THtmlVersion htmlVersion, THtmlStyle htmlStyle, Encoding aEncoding)

    Parameters

    <-> Parameter Type Description
    aWorkbook ExcelFile ExcelFile where the cell is.
    aCellFormat TFlxFormat Format of the cell where this string is.
    htmlVersion THtmlVersion Version of the html returned. In XHTML, single tags have a "/" at the end, while in 4.0 they don't.
    htmlStyle THtmlStyle Specifies whether to use CSS or not.
    aEncoding Encoding Encoder used to return the string. Use UTF-8 for normal cases.

    Returns

    The string formatted as an HTML string.

    See also

    • TRichString

    TRichString.ToHtml(ExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, Encoding, IHtmlFontEvent)

    Returns the rich string content as an HTML Formatted string. Note: This method is for advanced uses only. Normally you would just use ExcelFile.GetHtmlFromCell(Int32, Int32, THtmlVersion, THtmlStyle, Encoding)

    Syntax

    Namespace: FlexCel.Core

    public String ToHtml(ExcelFile aWorkbook, TFlxFormat aCellFormat, THtmlVersion htmlVersion, THtmlStyle htmlStyle, Encoding aEncoding, IHtmlFontEvent OnHtmlFont)

    Parameters

    <-> Parameter Type Description
    aWorkbook ExcelFile ExcelFile where the cell is.
    aCellFormat TFlxFormat Format of the cell where this string is.
    htmlVersion THtmlVersion Version of the html returned. In XHTML, single tags have a "/" at the end, while in 4.0 they don't.
    htmlStyle THtmlStyle Specifies whether to use CSS or not.
    aEncoding Encoding Encoder used to return the string. Use UTF-8 for normal cases.
    OnHtmlFont IHtmlFontEvent Provide this parameter to customize what to do when different fonts are found in the string.

    Returns

    The string formatted as an HTML string.

    See also

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