Skip to main content
All docs
V19.1
.NET Framework 4.5.2+
Row

CommentCollection.Remove(Range) Method

Removes comments from the specified cell range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

void Remove(
    Range range
)

Parameters

Name Type Description
range Range

A Range object that specifies a range of cells containing comments to be deleted.

Remarks

The Remove method removes all comments contained in cells within the specified cell range. You can also do the same via the Worksheet.ClearComments method. To remove a comment by its index in the collection, use the CommentCollection.RemoveAt method. To remove all comments from the worksheet, use the CommentCollection.Clear method.

To add a comment to a cell, use the CommentCollection.Add method.

See Also