var instance; // Type: Events instance.CommentRemoved = function(sheet, sheetName, comment) { };
パラメータ
- sheet
- イベントを発生させたシート。
- sheetName
- シートの名前。
- comment
- 削除されたコメント。
var instance; // Type: Events instance.CommentRemoved = function(sheet, sheetName, comment) { };
// 次のサンプルコードは、CommentRemovedイベントを使用します。 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.CommentRemoved, function (e, info) { console.log("sheet name: " + info.sheetName); });
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.CommentRemoved, function (e, info) { console.log("sheet name: " + info.sheetName); });