CommentRemoveReply Method |
Removes the specified reply to this comment.
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic void RemoveReply(
Comment reply
)
Public Sub RemoveReply (
reply As Comment
)
public:
void RemoveReply(
Comment^ reply
)
member RemoveReply :
reply : Comment -> unit
Parameters
- reply
- Type: Aspose.WordsComment
The comment node of the deleting reply.
RemarksAll constituent nodes of the reply will be deleted from the document.
ExamplesShows 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;
parentComment.RemoveReply(repliesCollection[0]);
See Also