Back to Devexpress

CommentCollection.Contains(Comment) Method

officefileapi-devexpress-dot-spreadsheet-dot-commentcollection-dot-contains-x28-devexpress-dot-spreadsheet-dot-comment-x29.md

latest2.4 KB
Original Source

CommentCollection.Contains(Comment) Method

Indicates whether the collection contains the specified note.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool Contains(
    Comment comment
)
vb
Function Contains(
    comment As Comment
) As Boolean

Parameters

NameTypeDescription
commentComment

A Comment object to locate in the collection.

|

Returns

TypeDescription
Boolean

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

|

Remarks

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

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

See Also

Threaded Comments in Spreadsheet Documents

How to: Add a Simple Note To a Spreadsheet Cell

CommentCollection Interface

CommentCollection Members

DevExpress.Spreadsheet Namespace