SpreadJS Documentation
autoSize Method
GC.Spread.Sheets.Comments Namespace > Comment class : autoSize Method
Whether the comment automatically sizes.
Gets or sets whether the comment automatically sizes based on its content.
Syntax
var instance = new GC.Spread.Sheets.Comments.Comment(text);
var returnValue; // Type: any
returnValue = instance.autoSize(value);
function autoSize( 
   value : boolean
) : any;

Parameters

value
Whether the comment automatically sizes.

Return Value

If no value is set, returns whether the comment automatically sizes; otherwise, returns the comment.
Example
This example uses the autoSize method.
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