SetText
function SetText(text: string = null): void
Description
Sets the comment text.
Parameters
- text
string
null New text for comment.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
var oRange = oWorksheet.GetRange("A1");
var oComment = oRange.AddComment("This is just a number.");
oComment.SetText("New comment text");