SpreadJS Documentation
Comment class
GC.Spread.Sheets.Comments Namespace : Comment class
Represents a comment.
Syntax
var instance = new GC.Spread.Sheets.Comments.Comment(text);
function 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);
Inheritance Hierarchy

Object
   GC.Spread.Sheets.Comments.Comment

Constructors
 NameDescription
public ConstructorRepresents a comment.  
Top
Methods
 NameDescription
public MethodGets or sets whether the comment automatically sizes based on its content.  
public MethodGets or sets the background color of the comment.  
public MethodGets or sets the border color for the comment.  
public MethodGets or sets the border style for the comment.  
public MethodGets or sets the border width for the comment.  
public MethodGets or sets the state of the comment.  
public MethodGets or sets the display mode for the comment.  
public MethodGets or sets whether the comment dynamically moves.  
public MethodGets or sets whether the comment is dynamically sized.  
public MethodGets or sets the font family for the comment.  
public MethodGets or sets the font size for the comment. Valid value is numbers followed by "pt" (required), such as "12pt".  
public MethodGets or sets the font style of the comment.  
public MethodGets or sets the font weight for the comment.  
public MethodGets or sets the text color for the comment.  
public MethodGets or sets the height of the comment.  
public MethodGets or sets the horizontal alignment of the comment.  
public MethodGets or sets the location of the comment.  
public MethodGets or sets the locked setting for the comment.  
public MethodGets or sets the locked text for the comment.  
public MethodGets or sets the opacity of the comment.  
public MethodGets or sets the padding for the comment.  
public MethodGets or sets whether the comment displays a shadow.  
public MethodGets or sets the text of the comment.  
public MethodGets or sets the text decoration for the comment.  
public MethodGets or sets the width of the comment.  
public MethodGets or sets the z-index of the comment.  
Top
See Also

Reference

GC.Spread.Sheets.Comments Namespace
Adding a Comment to a Cell