Skip to main content
All docs
V25.1
  • Row

    CommentCollection.Remove(CellRange) Method

    Removes notes from the specified cell range.

    Namespace: DevExpress.Spreadsheet

    Assembly: DevExpress.Spreadsheet.v25.1.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