设置文本填充当前文本运行
名称 | 类型 | 描述性 |
OAPIFILLLL | apiFill | 颜色或模式填充文本颜色 |
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();