集封

设置Fill(oapiFill)apiTextPr}

设置文本颜色当前文本运行

参数:

名称 类型 描述性
OAPIFILLLL apiFill

颜色或模式填充文本颜色

返回时间 :

类型
apiTextPr

实例

拷贝代码
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();

结果文档