Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

CommentCollection.Contains(Comment) Method

Indicates whether the collection contains the specified comment.

Namespace: DevExpress.Spreadsheet

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

Declaration

bool Contains(
    Comment comment
)

Parameters

Name Type Description
comment Comment

A Comment object to locate in the collection.

Returns

Type Description
Boolean

True, if the collection contains the comment; otherwise, false.

Remarks

To obtain all comments contained in the specified cell range, use the CommentCollection.GetComments method.

To add a comment to a cell, use the CommentCollection.Add method. To delete comments from cells, use the CommentCollection.Remove, CommentCollection.RemoveAt, CommentCollection.Clear or Worksheet.ClearComments method.

See Also