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

    Parameters

    value
    The locked text for the comment.

    Return Value

    If no value is set, returns the locked text for the comment; otherwise, returns the comment.
    Example
    This example uses the lockText method.
    var comment = new GC.Spread.Sheets.Comments.Comment();
    comment.text("new comment!");
    comment.backColor("yellow");
    comment.foreColor("green");
    comment.lockText(false);
    comment.locked(false);
    comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
    activeSheet.options.isProtected = true;
    activeSheet.getCell(5,5).comment(comment);
    See Also

    Reference

    Comment class