CommentCollection Class |
Namespace: Aspose.Words
The CommentCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Count |
Gets the number of nodes in the collection.
(Inherited from NodeCollection.) |
![]() ![]() | Item |
Retrieves a Comment at the given index.
|
Name | Description | |
---|---|---|
![]() ![]() | Add |
Adds a node to the end of the collection.
(Inherited from NodeCollection.) |
![]() ![]() | Clear |
Removes all nodes from this collection and from the document.
(Inherited from NodeCollection.) |
![]() ![]() | Contains |
Determines whether a node is in the collection.
(Inherited from NodeCollection.) |
![]() | Equals | (Inherited from Object.) |
![]() | GetEnumerator | (Inherited from NodeCollection.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | IndexOf |
Returns the zero-based index of the specified node.
(Inherited from NodeCollection.) |
![]() ![]() | Insert |
Inserts a node into the collection at the specified index.
(Inherited from NodeCollection.) |
![]() ![]() | Remove |
Removes the node from the collection and from the document.
(Inherited from NodeCollection.) |
![]() ![]() | RemoveAt |
Removes the node at the specified index from the collection and from the document.
(Inherited from NodeCollection.) |
![]() ![]() | ToArray |
Copies all nodes from the collection to a new array of nodes.
(Inherited from NodeCollection.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(MyDir + "Comments.docx"); NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true); Comment comment = (Comment) comments[0]; CommentCollection repliesCollection = comment.Replies; foreach (Comment childComment in repliesCollection) { if (!childComment.Done) { // Update comment reply Done mark childComment.Done = true; } }