CreateColorFromRGB
function CreateColorFromRGB(r: byte = null, g: byte = null, b: byte = null): ApiColor
Description
Creates an RGB color setting the appropriate values for the red, green and blue color components.
Parameters
Red color component value.
Green color component value.
Blue color component value.
Returns
ApiColor
Try It
var oWorksheet = Api.GetActiveSheet();
var oColor = Api.CreateColorFromRGB(255, 111, 61);
oWorksheet.GetRange("A2").SetValue("Text with color");
oWorksheet.GetRange("A2").SetFontColor(oColor);