SpreadJS 13
GC.Spread.Sheets.Comments Namespace / Comment class / height Method
The height of the comment.
In This Topic
    height Method
    In This Topic
    Gets or sets the height of the comment.
    Syntax
    var instance = new GC.Spread.Sheets.Comments.Comment(text);
    var returnValue; // Type: any
    returnValue = instance.height(value);
    function height( 
       value : number
    ) : any;

    Parameters

    value
    The height of the comment.

    Return Value

    If no value is set, returns the height of the comment; otherwise, returns the comment.
    Example
    This example sets the height 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