SpreadJS Documentation
locked Method
The locked setting for the comment.
Gets or sets the locked setting for the comment.
Syntax
var instance = new GcSpread.Sheets.Comment();
var returnValue; // Type: boolean
returnValue = instance.locked(value);
function locked( 
   value : boolean
) : boolean;

Parameters

value
The locked setting for the comment.

Return Value

The locked setting for the comment.
Example
This example uses the locked method.
var comment = new GcSpread.Sheets.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.lockText(false);
comment.locked(false);
comment.displayMode(GcSpread.Sheets.DisplayMode.AlwaysShown);
activeSheet.setIsProtected(true);
activeSheet.setComment(5,5,comment);
See Also

Reference

Comment class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.