CommentCollection Class

Encapsulates a collection of Comment objects.
Inheritance Hierarchy

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.10.0.0 (20.10)
Syntax
public class CommentCollection : CollectionBase

The CommentCollection type exposes the following members.

Properties
Methods
  NameDescription
Public methodAdd(String)
Adds a comment to the collection.
Public methodAdd(Int32, Int32)
Adds a comment to the collection.
Public methodAddThreadedComment(String, String, ThreadedCommentAuthor)
Adds a threaded comment.
Public methodAddThreadedComment(Int32, Int32, String, ThreadedCommentAuthor)
Adds a threaded comment.
Public methodClear
Removes all comments;
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator (Inherited from CollectionBase.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetThreadedComments(String)
Gets the threaded comments by cell name.
Public methodGetThreadedComments(Int32, Int32)
Gets the threaded comments by row and column index.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnClear (Inherited from CollectionBase.)
Protected methodOnClearComplete (Inherited from CollectionBase.)
Protected methodOnInsert (Inherited from CollectionBase.)
Protected methodOnInsertComplete (Inherited from CollectionBase.)
Protected methodOnRemove (Inherited from CollectionBase.)
Protected methodOnRemoveComplete (Inherited from CollectionBase.)
Protected methodOnSet (Inherited from CollectionBase.)
Protected methodOnSetComplete (Inherited from CollectionBase.)
Protected methodOnValidate (Inherited from CollectionBase.)
Public methodRemoveAt(Int32) (Inherited from CollectionBase.)
Public methodRemoveAt(String)
Removes the comment of the specific cell.
Public methodRemoveAt(Int32, Int32)
Removes the comment of the specific cell.
Public methodToString (Inherited from Object.)
Examples
[C#]

Workbook workbook = new Workbook();

CommentCollection comments = workbook.Worksheets[0].Comments;


[Visual Basic]

Dim workbook as Workbook = new Workbook()

Dim comments as CommentCollection = workbook.Worksheets(0).Comments
See Also