Adds a reply to a comment.
Name | Type | Default | Description |
sText | String | The comment reply text (required). |
|
sAuthorName | String | The name of the comment reply author (optional). |
|
sUserId | String | The user ID of the comment reply author (optional). |
|
nPos | Number | this.GetRepliesCount() | The comment reply position. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("This is just a sample text"); Api.AddComment(oParagraph, "comment", "John Smith"); var aComments = oDocument.GetAllComments(); aComments[0].AddReply("reply1", "Mark Potato", "uid-2", 0); builder.SaveFile("docx", "AddReply.docx"); builder.CloseFile();