Creates an RGB color setting the appropriate values for the red, green and blue color components.
Name | Type | Description |
r | byte | Red color component value. |
g | byte | Green color component value. |
b | byte | Blue color component value. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oColor = Api.CreateColorFromRGB(255, 111, 61); oWorksheet.GetRange("A2").SetValue("Text with color"); oWorksheet.GetRange("A2").SetFontColor(oColor); builder.SaveFile("xlsx", "CreateColorFromRGB.xlsx"); builder.CloseFile();