[]
Iterable<ICommentThreaded>每个线程式批注都由 ICommentThreaded 对象表示。使用 IWorksheet.getCommentsThreaded() 可以访问工作表中的所有线程式批注,或使用 ICommentThreaded.getReplies() 访问特定线程式批注的回复。
ICommentThreaded comment = worksheet.getRange("C3").addCommentThreaded("Check the sales total.", "Nancy");
comment.addReply("I updated the number.", "Bill");
ICommentsThreaded commentsThreaded = worksheet.getCommentsThreaded();
ICommentsThreaded replies = comment.getReplies();
ICommentThreaded firstReply = replies.get(0);
此集合可以表示工作表中的所有顶级线程式批注,也可以表示单个 ICommentThreaded 的回复。
ICommentThreaded comment = worksheet.getRange("C3").addCommentThreaded("Check the sales total.", "Nancy");
comment.addReply("I updated the number.", "Bill");
ICommentsThreaded replies = comment.getReplies();
ICommentThreaded firstReply = replies.get(0);
index - 线程式批注在集合中的从零开始的索引。ICommentThreaded 对象。此集合可以表示工作表中的所有顶级线程式批注,也可以表示单个 ICommentThreaded 的回复。返回的值反映当前集合中的项数。
ICommentThreaded comment = worksheet.getRange("A1").addCommentThreaded("Please review the total.", "Alex");
comment.addReply("I updated the number.", "Jamie");
ICommentsThreaded replies = comment.getReplies();
int count = replies.getCount();