SetText
function SetText(sText: string = null): ApiComment
Description
Sets the comment text.
Parameters
- sText
string
null The comment text.
Returns
ApiComment
Try It
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].SetText("new comment's text");