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

Parameters

value
The locked text for the comment.

Return Value

The locked text for the comment.
Example
This example uses the lockText 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.