Get Started
Documentation

GetClassType

GetClassType() → {"color"}

Get the type of this class.

Returns:

Type
color

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oColor = Api.CreateColorFromRGB(49, 133, 154);
oWorksheet.GetRange("A2").SetValue("Text with color");
oWorksheet.GetRange("A2").SetFontColor(oColor);
oColorClassType = oColor.GetClassType();
oWorksheet.GetRange("A4").SetValue("Class type = " + oColorClassType);
builder.SaveFile("xlsx", "GetClassType.xlsx");
builder.CloseFile();

Resulting document