设置文本颜色当前文本运行
名称 | 类型 | 描述性 |
OAPIFILLLL | apiFill | 颜色或模式填充文本颜色 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll =api.CreateSolidFillvarOTextPr=ODocument.Get DefaultextProTextPr.SetFill(oFill)!oblicte.adText ("这是用字体颜色设置为橙色运行的文本.")oParagraph.SetTextPr(oTextPr)!builder.SaveFile("docx", "SetFill.docx")!builder.CloseFile();