SpreadJS 13
GC.Spread.Sheets.Comments Namespace / Comment class / Comment Constructor
The text of the comment.
In This Topic
    Comment Constructor
    In This Topic
    Represents a comment.
    Syntax
    var instance = new GC.Spread.Sheets.Comments.Comment(text);
    function Comment( 
       (optional) text : string
    ) : Comment;

    Parameters

    text
    The text of the comment.
    Example
    var comment = new GC.Spread.Sheets.Comments.Comment();
    comment.text("new comment!");
    comment.backColor("yellow");
    comment.foreColor("green");
    comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
    comment.autoSize(true);
    activeSheet.getCell(5,5).comment(comment);
    See Also

    Reference

    Comment class