TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

GetRepliesCount

GetRepliesCount() → { Number }

Returns a number of the comment replies.

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");
var oComment = oRange.AddComment("This is just a number.");
oComment.AddReply("Reply 1", "John Smith", "uid-1");
oWorksheet.GetRange("A3").SetValue("Comment replies count: " + oComment.GetRepliesCount());
builder.SaveFile("xlsx", "GetRepliesCount.xlsx");
builder.CloseFile();

Resulting document