添加Footote

adFototeApiDocumentContent}

添加选定文本注解(或当前位置,如果选择不存在)。

参数:

这种方法没有任何参数

返回时间 :

类型
ApiDocumentContent

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0adText ("这只是样本文本.")oDocument.AddFootnote()!var aFootnotesFirstParagraphs = oDocument.GetFootnotesFirstParagraphs()!aFootnotesFirstParagraphs[0].AddText("Footnote 1")!aFootnotesFirstParagraphs[0].SetBold(true)!builder.SaveFile("docx", "AddFootnote.docx")!builder.CloseFile();

结果文档