SpreadJS Documentation
autoSize Method
Whether the comment automatically sizes.
Gets or sets whether the comment automatically sizes based on its content.
Syntax
var instance = new GcSpread.Sheets.Comment();
var returnValue; // Type: boolean
returnValue = instance.autoSize(value);
function autoSize( 
   value : boolean
) : boolean;

Parameters

value
Whether the comment automatically sizes.

Return Value

Whether the comment automatically sizes.
Example
This example uses the autoSize method.
var comment = new GcSpread.Sheets.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown);
comment.autoSize(true);
activeSheet.setComment(5,5,comment);
See Also

Reference

Comment class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.