docx
    Preparing search index...

    Variable PatchTypeConst

    PatchType: {
        DOCUMENT: "file";
        DRAWING: "drawing";
        PARAGRAPH: "paragraph";
        TABLE_ROWS: "tableRows";
    } = ...

    Patch type enumeration.

    Determines how the replacement content should be inserted into the document.

    Type Declaration

    • ReadonlyDOCUMENT: "file"

      Replace entire file-level elements (e.g., whole paragraphs)

    • ReadonlyDRAWING: "drawing"

      Change a drawing whose alt text holds the placeholder, and the parts it refers to, such as the data of a chart made in Word. See DrawingPatch

    • ReadonlyPARAGRAPH: "paragraph"

      Replace content within paragraphs (inline replacement)

    • ReadonlyTABLE_ROWS: "tableRows"

      Repeat the rows of a table that hold the placeholder's fields, such as {{items.name}}, once for each row of data. See TableRowsPatch