docx
    Preparing search index...

    Class FootnoteReferenceRun

    Represents a footnote reference run in a WordprocessingML document.

    FootnoteReferenceRun creates a run containing a footnote reference marker (typically a superscript number) that appears in the main document text. Clicking this marker navigates to the corresponding footnote content.

    It refers to one of the document's footnotes by its id, or is given its footnote's content, for a footnote of its own, which is added to the document's footnotes when the run is written. Content made before the document it goes in, such as by a function that makes paragraphs, then brings its footnotes with it.

    Reference: http://officeopenxml.com/WPfootnotes.php

    // Add a footnote reference in a paragraph
    new Paragraph({
    children: [
    new TextRun("This text has a footnote"),
    new FootnoteReferenceRun(1),
    ],
    });

    // Or with the footnote's content
    new Paragraph({
    children: [
    new TextRun("This text has a footnote of its own"),
    new FootnoteReferenceRun({ children: [new Paragraph("The footnote.")] }),
    ],
    });

    Hierarchy (View Summary)

    • Run
      • FootnoteReferenceRun
    Index