[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IComment.Next

Next Method

Next()

Returns the IComment object that represents the next comment.

Returns null if the current comment is the last comment on the worksheet.

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

The next comment after the current comment, or null if the current comment is the last comment on the worksheet.

Examples
worksheet.Range["C3"].AddComment("First note.");
IComment comment = worksheet.Range["D5"].AddComment("Second note.");
worksheet.Range["F7"].AddComment("Third note.");
IComment nextComment = comment.Next();