CommentRemoveReply Method
Removes the specified reply to this comment.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.10
Syntax
public void RemoveReply(
	Comment reply
)

Parameters

reply
Type: Aspose.WordsComment
The comment node of the deleting reply.
Remarks
All constituent nodes of the reply will be deleted from the document.
Examples
Shows how to remove specific comment reply.
[C#]

Document doc = new Document(MyDir + "Comment.Document.docx");

NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true);

Comment parentComment = (Comment) comments[0];
CommentCollection repliesCollection = parentComment.Replies;

// Remove the first reply to comment
parentComment.RemoveReply(repliesCollection[0]);
See Also