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 Members

In This Article
A collection of simple notes (legacy comments) contained in a worksheet.

#Properties
Show Inherited Hide Inherited

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

#Methods
Show Inherited Hide Inherited

Name Description
Add(CellRange, String, String) Adds a note to the specified cell and returns the newly created object.
Add(CellRange, String) Adds an empty simple note to the specified cell and returns the newly created object.
Clear() Removes all simple notes from the collection.
Contains(Comment) Indicates whether the collection contains the specified note.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetComments(CellRange) Gets the note(s) contained in the specified cell range.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(Comment) Returns the index of the specified note in the collection.
Remove(CellRange) Removes notes from the specified cell range.
Remove(Comment) Removes the specified note from the collection.
RemoveAt(Int32) Removes the note at the specified index from the collection.
See Also