CommentAddReply Method
Adds a reply to this comment.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.10
Syntax
public Comment AddReply(
	string author,
	string initial,
	DateTime dateTime,
	string text
)

Parameters

author
Type: SystemString
The author name for the reply.
initial
Type: SystemString
The author initials for the reply.
dateTime
Type: SystemDateTime
The date and time for the reply.
text
Type: SystemString
The reply text.

Return Value

Type: Comment
The created Comment node for the reply.
Remarks
Due to the existing MS Office limitations only 1 level of replies is allowed in the document. An exception of type InvalidOperationException will be raised if this method is called on the existing Reply comment.
Examples
Shows how to add a comment with a reply to a document.
[C#]

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Create new comment
Comment newComment = new Comment(doc, "John Doe", "J.D.", DateTime.Now);
newComment.SetText("My comment.");

// Add this comment to a document node
builder.CurrentParagraph.AppendChild(newComment);

// Add comment reply
newComment.AddReply("John Doe", "JD", new DateTime(2017, 9, 25, 12, 15, 0), "New reply");
See Also