Get Started
Usage API

ApiComment

new ApiComment()

Class representing a comments

Methods

Name Description
Delete

Deletes the object.

GetText

Returns the text of comment.

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();
oWorksheet.GetRange("A3").SetValue("Comment: " + oComment.GetText());
builder.SaveFile("xlsx", "AddComment.xlsx");
builder.CloseFile();

Resulting document