UpdateActualReferenceMarks

Document.UpdateActualReferenceMarks method

更新ActualReferenceMark文档中所有脚注和尾注的属性。

public void UpdateActualReferenceMarks()

评论

更新字段(UpdateFields )可能是获得正确结果所必需的。

例子

展示如何获取实际的脚注引用标记。

Document doc = new Document(MyDir + "Footnotes and endnotes.docx");

Footnote footnote = (Footnote)doc.GetChild(NodeType.Footnote, 1, true);
doc.UpdateFields();
doc.UpdateActualReferenceMarks();

Assert.AreEqual("1", footnote.ActualReferenceMark);

也可以看看