C# 添加、读取Word脚注尾注
脚注和尾注是对文本的补充说明。脚注一般位于页面的底部,可以作为文档某处内容的注释;尾注一般位于文档的末尾,列出引文 的出处等。在本示例中将介绍如何来添加或读取Word脚注尾注。 工具使用: Free Spire. Doc for .NET(免费版) 第一步 :dll引用 第二步: 添加Word脚注、尾注 【C#】 using Spire.Doc; using Spire.Doc.Documents; using Spire.Doc.Fields; using System.Drawing; namespace InsertFootnote_Doc { class Program { static void Main(string[] args) { //新建一个word文档对象并加载需要添加脚注尾注的word文档 Document document = new Document(); document.LoadFromFile("sample.docx", FileFormat.Docx2010); //获取第3个段落 Paragraph paragraph = document.Se...