[]
Returns the ICommentThreaded object that represents the previous threaded comment.
For a top-level threaded comment, this method returns the previous threaded comment on the worksheet. For a reply threaded comment, this method returns the previous reply in the parent threaded comment's replies collection.
ICommentThreaded Previous()
Function Previous() As ICommentThreaded
| Type | Description |
|---|---|
| ICommentThreaded | The previous ICommentThreaded object. Returns null if the top-level threaded comment is the first threaded comment on a sheet, or if the reply threaded comment is the first reply of a threaded comment's replies. |
worksheet.Range["A1"].AddCommentThreaded("Please review the total.", "Alex");
ICommentThreaded comment = worksheet.Range["A2"].AddCommentThreaded("Check the discount.", "Jamie");
ICommentThreaded previousComment = comment.Previous();
string previousText = previousComment.Text;