Class representing a base class for the color types.
Name | Description |
GetClassType | Returns a type of the ApiColor class. |
GetRGB | Returns a color value in RGB format. |
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); var sColorClassType = oColor.GetClassType(); oWorksheet.GetRange("A4").SetValue("Class type = " + sColorClassType); builder.SaveFile("xlsx", "ApiColor.xlsx"); builder.CloseFile();