设置所有四种字体插件并带指定的字体组
名称 | 类型 | 描述性 |
sontForm | 字符串 | 字体家庭当前文本运行使用 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0var ORun=api.CreateRunORun.AddText ("这只是样本文本)oParagraph.AddElement(oRun)!ORun=Api.CreateRunoRun.SetFontFamily("Calibri Light")!ORun.AddTextoParagraph.AddElement(oRun)!builder.SaveFile("docx", "SetFontFamily.docx")!builder.CloseFile();