Sets the text color to the current cell range with the previously created color object.
Name | Type | Description |
oColor | ApiColor | The color object which specifies the color to be set to the text in the cell / cell range. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.GetRange("A2").SetFontColor(Api.CreateColorFromRGB(255, 111, 61)); oWorksheet.GetRange("A2").SetValue("This is the text with a color set to it"); oWorksheet.GetRange("A4").SetValue("This is the text with a default color"); builder.SaveFile("xlsx", "SetFontColor.xlsx"); builder.CloseFile();