CommentRemoveAllReplies Method |
Removes all replies to this comment.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic void RemoveAllReplies()
Public Sub RemoveAllReplies
public:
void RemoveAllReplies()
member RemoveAllReplies : unit -> unit
Remarks All constituent nodes of the replies will be deleted from the document.
ExamplesShows how to remove comment replies.
Document doc = new Document(MyDir + "Comments.docx");
NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true);
Comment comment = (Comment) comments[0];
comment.RemoveAllReplies();
See Also