Spread.Sheets Documentation
width Method
GC.Spread.Sheets.Comments Namespace > Comment class : width Method
The width of the comment.
Gets or sets the width of the comment.
Syntax
var instance = new GC.Spread.Sheets.Comments.Comment(text);
var returnValue; // Type: any
returnValue = instance.width(value);
function width( 
   value : number
) : any;

Parameters

value
The width of the comment.

Return Value

If no value is set, returns the width of the comment; otherwise, returns the comment.
Example
This example sets the width 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.height(50);
comment.width(90);
activeSheet.getCell(5,5).comment(comment);
activeSheet.suspendPaint();
activeSheet.resumePaint();
See Also

Reference

Comment class