Search Results for

    Show / Hide Table of Contents

    Class HtmlExportOptions

    Configuration options for HTML exports

    Controls styling, responsiveness, and CSS class application for HTML table output.

    ------------------------------------------------

    Usage:

    var options = new HtmlExportOptions
    {
    HtmlIncludeStyles = true,
    HtmlResponsive = true,
    HtmlTableClass = "custom-table"
    };

    ------------------------------------------------

    Inheritance
    System.Object
    ExportOptionsBase
    HtmlExportOptions
    Inherited Members
    ExportOptionsBase.SpanMode
    ExportOptionsBase.IncludeHeaders
    ExportOptionsBase.IncludeEmptyRows
    ExportOptionsBase.TextEncoding
    Namespace: IronPdf.Extractions
    Assembly: IronPdf.dll
    Syntax
    public class HtmlExportOptions : ExportOptionsBase
    Remarks

    Important Considerations:

    Responsive Design: Makes tables mobile-friendly with automatic wrapping.

    Note: Custom CSS classes allow integration with existing stylesheets.

    Related Documentation:

    How-To Guide: HTML Export Guide

    Constructors

    HtmlExportOptions()

    Declaration
    public HtmlExportOptions()

    Properties

    HtmlIncludeStyles

    Whether to include CSS styles in HTML export

    Default: true

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

    HtmlResponsive

    Whether to make HTML tables responsive

    Default: true

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

    HtmlTableClass

    CSS class for HTML tables

    Default: "exported-table"

    Declaration
    public string HtmlTableClass { get; set; }
    Property Value
    Type Description
    System.String

    Inherited members

    SpanMode
    IncludeHeaders
    IncludeEmptyRows
    TextEncoding
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.