[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IComment.Previous

Previous Method

Previous()

Returns the IComment object that represents the previous comment.

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

Declaration
IComment Previous()
Function Previous() As IComment
Returns
Type Description
IComment

The previous comment before the current comment, or null if the current comment is the first comment on the worksheet.

Examples
worksheet.Range["B2"].AddComment("First note.");
IComment comment = worksheet.Range["D5"].AddComment("Second note.");
IComment previousComment = comment.Previous();