[]
Returns the IComment object that represents the previous comment.
Returns null if the current comment is the first comment on the worksheet.
IComment Previous()
Function Previous() As IComment
| Type | Description |
|---|---|
| IComment | The previous comment before the current comment, or null if the current comment is the first comment on the worksheet. |
worksheet.Range["B2"].AddComment("First note.");
IComment comment = worksheet.Range["D5"].AddComment("Second note.");
IComment previousComment = comment.Previous();