向当前运行添加注释
名称 | 类型 | 描述性 |
sText语言 | 字符串 | 注释文本 |
认证程序 | 字符串 | 作者名(可选性)。 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0var ORun=api.CreateRunORun.AddText ("这只是样本文本没有什么特殊性 )!oParagraph.AddElement(oRun)!ORUN.AddComment(评语,JohnSmith)builder.SaveFile("docx", "AddComment.docx")!builder.CloseFile();