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

Parameters

row
The row index.
col
The column index.

Return Value

The comment in the cell.
Example
This example uses the getComment method to get the text.
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);
alert(activeSheet.getComment(5,5).text());
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.