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

    Interface ImageAnchor

    A cell range that an image is anchored to, as an OOXML xdr:twoCellAnchor. Columns and rows are 0-based indexes (0 is column A and row 1).

    interface ImageAnchor {
        fromCol: number;
        fromColOff?: number;
        fromRow: number;
        fromRowOff?: number;
        toCol: number;
        toColOff?: number;
        toRow: number;
        toRowOff?: number;
    }
    Index
    fromCol: number

    0-based column of the top-left corner.

    fromColOff?: number

    Horizontal offset of the top-left corner inside its cell, in EMUs (English Metric Units, 9525 per pixel). Default 0.

    fromRow: number

    0-based row of the top-left corner.

    fromRowOff?: number

    Vertical offset of the top-left corner inside its cell, in EMUs. Default 0.

    toCol: number

    0-based column of the bottom-right corner.

    toColOff?: number

    Horizontal offset of the bottom-right corner inside its cell, in EMUs. Default 0.

    toRow: number

    0-based row of the bottom-right corner.

    toRowOff?: number

    Vertical offset of the bottom-right corner inside its cell, in EMUs. Default 0.