[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICommentThreaded.Previous

Previous Method

Previous()

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.

Declaration
ICommentThreaded Previous()
Function Previous() As ICommentThreaded
Returns
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.

Examples
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;