actual_reference_mark property
Footnote.actual_reference_mark property
Gets the actual text of the reference mark displayed in the document for this footnote.
@property
def actual_reference_mark(self) -> str:
...
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.update_actual_reference_marks() method. Updating fields (Document.update_fields()) may also be necessary to get the correct result.
Examples
Shows how to get actual footnote reference mark.
doc = aw.Document(file_name=MY_DIR + 'Footnotes and endnotes.docx')
footnote = doc.get_child(aw.NodeType.FOOTNOTE, 1, True).as_footnote()
doc.update_fields()
doc.update_actual_reference_marks()
self.assertEqual('1', footnote.actual_reference_mark)
See Also
- module aspose.words.notes
- class Footnote