Get Started
Usage API
More information

GetClassType

GetClassType() → { number }

Returns the type of comment class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
oRange = oWorksheet.GetRange("A1");
oRange.AddComment("This is just a number.");
oComment = oRange.GetComment();
sType = oComment.GetClassType();
oWorksheet.GetRange("A3").SetValue("Type: " + sType + " (number of comment data type)");
builder.SaveFile("xlsx", "GetClassType.xlsx");
builder.CloseFile();

Resulting document