[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICommentThreaded.Next

Next Method

Next()

Returns the ICommentThreaded object that represents the next threaded comment.

For a top-level threaded comment, this method returns the next threaded comment on the worksheet. For a reply threaded comment, this method returns the next reply in the parent threaded comment's replies collection.

Declaration
ICommentThreaded Next()
Function [Next]() As ICommentThreaded
Returns
Type Description
ICommentThreaded

The next ICommentThreaded object. Returns null if the top-level threaded comment is the last threaded comment on a sheet, or if the reply threaded comment is the last reply of a threaded comment's replies.

Examples
ICommentThreaded first = worksheet.Range["A1"].AddCommentThreaded("Please review the total.", "Alex");
worksheet.Range["A2"].AddCommentThreaded("Check the discount.", "Jamie");
ICommentThreaded nextComment = first.Next();
string nextText = nextComment.Text;