SpreadJS Documentation
comment Method
The comment.
Gets or sets the comment for the cell.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: Comment
returnValue = instance.comment(value);
function comment( 
   value : Comment
) : Comment;

Parameters

value
The comment.

Return Value

The comment.
Example
This example creates a cell comment.
var comment = new GcSpread.Sheets.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown);
activeSheet.getCell(5,5).comment(comment);
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.