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()
Remarks
Updating fields (UpdateFields) may be necessary to get the correct result.
Examples
Shows how to get actual footnote reference mark.
auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Footnotes and endnotes.docx"));
auto footnote = System::ExplicitCast<Aspose::Words::Notes::Footnote>(doc->GetChild(NodeType::Footnote, 1, true));
doc->UpdateFields();
doc->UpdateActualReferenceMarks();
ASSERT_EQ(footnote->get_ActualReferenceMark(), u"1");
See Also
- Class Document
- Namespace Aspose::Words
- Library Aspose.Words for C++