modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface AlignmentData

    Cell text alignment properties.

    interface AlignmentData {
        horizontal?:
            | "general"
            | "left"
            | "center"
            | "right"
            | "fill"
            | "justify"
            | "centerContinuous"
            | "distributed"
            | null;
        indent?: number
        | null;
        justifyLastLine?: boolean;
        readingOrder?: number | null;
        relativeIndent?: number | null;
        shrinkToFit?: boolean;
        textRotation?: number | null;
        vertical?: "center" | "justify" | "distributed" | "top" | "bottom" | null;
        wrapText?: boolean;
    }
    Index
    horizontal?:
        | "general"
        | "left"
        | "center"
        | "right"
        | "fill"
        | "justify"
        | "centerContinuous"
        | "distributed"
        | null

    Horizontal alignment.

    indent?: number | null

    Text indent level.

    justifyLastLine?: boolean

    Justify the last line of distributed text.

    readingOrder?: number | null

    Reading order: 0 context-dependent, 1 left-to-right, 2 right-to-left.

    relativeIndent?: number | null

    Indent change applied by a differential format.

    shrinkToFit?: boolean

    Whether text shrinks to fit the cell width.

    textRotation?: number | null

    Text rotation in degrees (0-180, or 255 for vertical text).

    vertical?: "center" | "justify" | "distributed" | "top" | "bottom" | null

    Vertical alignment.

    wrapText?: boolean

    Whether text wraps within the cell.