Get Started
Usage API
More information

GetClassType

GetClassType() → { number }

Returns a type of the ApiComment class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
number

Example

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

Resulting document