public void SetTextEx()
{
//ExStart
//ExFor:Comment.SetText
//ExSummary:Shows how to add a comment to a document and set it's text.
Document doc = new Document(MyDir + "Document.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
Comment comment = new Comment(doc, "John Doe", "J.D.", DateTime.Now);
builder.CurrentParagraph.AppendChild(comment);
comment.SetText("My comment.");
//ExEnd
}
}