CommentRemoveReply Method

Removes the specified reply to this comment.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.5
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.
Document doc = new Document(MyDir + "Comments.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