actualReferenceMark property

Footnote.actualReferenceMark property

Gets the actual text of the reference mark displayed in the document for this footnote.

get actualReferenceMark(): string

Remarks

To initially populate values of this property for all reference marks of the document, or to update the values after changes in the document that might affect the reference marks, you must execute the Document.updateActualReferenceMarks() method. Updating fields (Document.updateFields()) may also be necessary to get the correct result.

Examples

Shows how to get actual footnote reference mark.

let doc = new aw.Document(base.myDir + "Footnotes and endnotes.docx");

let footnote = doc.getFootnote(1, true);
doc.updateFields();
doc.updateActualReferenceMarks();

expect(footnote.actualReferenceMark).toEqual("1");

See Also