Search Results for

    Show / Hide Table of Contents

    Class TextAlignment

    Represents the text alignment options for the title (h1) in the HTML document.

    Inheritance
    System.Object
    TextAlignment
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public sealed class TextAlignment : Enum

    The TextAlignment enumeration in IronPDF declares the alignment applied to the <h1> title when a PDF is exported to HTML through PdfToHtmlOptions.H1TextAlignment.

    It belongs to the IronPdf namespace and exposes three values: Left, Center, and Right. The setting controls how the document title renders in the converted HTML output.

    See PDF to HTML for the full conversion options.

    Fields

    Center

    Centers the text.

    Declaration
    public const TextAlignment Center
    Field Value
    Type Description
    TextAlignment

    Left

    Aligns the text to the left.

    Declaration
    public const TextAlignment Left
    Field Value
    Type Description
    TextAlignment

    Right

    Aligns the text to the right.

    Declaration
    public const TextAlignment Right
    Field Value
    Type Description
    TextAlignment

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget