Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CommentCollection.Remove(CellRange) Method

Removes notes from the specified cell range.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

void Remove(
    CellRange range
)

#Parameters

Name Type Description
range CellRange

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