SetTextfell

SetTextFill(oApiFill)apiTextPr}

设置文本填充当前文本运行

参数:

名称 类型 描述性
OAPIFILLLL apiFill

颜色或模式填充文本颜色

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontentssvarodente=occontent.getEplement0var ORun=api.CreateRunvaroTextPrssun.getTextProTextPr.SetFontSize(30)!i.CreteRGBColor(128,128,128)oRun.SetTextFill(oFill)!oParagraph.SetJc("left")!ORun.AddText ("这是带灰色文本集使用文本属性运行的文本")oParagraph.AddElement(oRun)!builder.SaveFile("xlsx", "SetTextFill.xlsx")!builder.CloseFile();

结果文档