Aspose::Words::Document::UpdateActualReferenceMarks method

Document::UpdateActualReferenceMarks method

Updates the ActualReferenceMark property of all footnotes and endnotes in the document.

void Aspose::Words::Document::UpdateActualReferenceMarks()

Examples

Shows how to get actual footnote reference mark.

auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Footnotes and endnotes.docx");

auto footnote = System::ExplicitCast<Aspose::Words::Notes::Footnote>(doc->GetChild(Aspose::Words::NodeType::Footnote, 1, true));
doc->UpdateFields();
doc->UpdateActualReferenceMarks();

ASSERT_EQ(u"1", footnote->get_ActualReferenceMark());

See Also