SpreadJS Documentation
setComment Method
The row index.
The column index.
The comment.
Sets a comment for the specified cell.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.setComment(row, col, comment);
function setComment( 
   row : number,
   col : number,
   comment : Comment
) : any;

Parameters

row
The row index.
col
The column index.
comment
The comment.
Example
This example adds a comment to a cell.
var comment = new GcSpread.Sheets.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown);
activeSheet.setComment(5,5,comment);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.