[]
定义何时显示批注
代码示例
//本示例使用DisplayMode枚举
var comment = new GC.Spread.Sheets.Comments.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
activeSheet.getCell(5,5).comment(comment);
• alwaysShown = 1
始终显示批注
• hoverShown = 2
仅当指针悬停在批注的所在单元上方时才显示注释