[]
定义批注状态。
example
//此示例获取批注状态。
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);
alert(comment.commentState());
• active = 1
指定批注处于活动状态。 在活动状态下,批注当前被选中。 用户可以移动批注的位置或调整批注的大小。
• edit = 2
指定批注处于编辑状态。 批注的编辑状态表示批注正在被修改或更新。 当用户正在更改批注内容时会出现此状态。
• normal = 3
指定批注处于正常状态。 在正常状态下,批注当前未被选中。 用户无法与正常状态下的批注交互。 点击批注将改变状态为活动或编辑。