var instance; // Type: Events instance.CommentRemoving = function(sheet, sheetName, comment, cancel) { };
パラメータ
- sheet
- イベントを発生させたシート。
- sheetName
- シートの名前。
- comment
- 削除されるコメント。
- cancel
- 操作をキャンセルするかどうかを示す値。
var instance; // Type: Events instance.CommentRemoving = function(sheet, sheetName, comment, cancel) { };
var comment = new GC.Spread.Sheets.Comments.Comment(); comment.text("new comment!"); comment.backColor("orange"); comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown); activeSheet.getCell(5,5).comment(comment); activeSheet.bind(GC.Spread.Sheets.Events.CommentRemoving, function (e, info) { info.cancel = true; });
var comment = new GC.Spread.Sheets.Comments.Comment(); comment.text("new comment!"); comment.backColor("orange"); comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown); activeSheet.getCell(5,5).comment(comment); activeSheet.bind(GC.Spread.Sheets.Events.CommentRemoving, function (e, info) { info.cancel = true; });