GetClassType
Returns a type of the ApiComment class.
Syntax
expression.GetClassType();
expression
- A variable that represents a ApiComment class.
Parameters
This method doesn't have any parameters.
Returns
"comment"
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
worksheet.GetRange("A1").SetValue("1");
let range = worksheet.GetRange("A1");
range.AddComment("This is just a number.");
let comment = range.GetComment();
let type = comment.GetClassType();
worksheet.GetRange("A3").SetValue("Type: " + type);