Sample code for comment


I would like to add comments to word doc but couldn’t figure out how. Is there any code sample for the class Aspose.Words.Comment



We don't have ready example of Comment class but here are a few notes about how to use it.

Comment is an inline-level node and can only be a child of Paragraph. Currently you cannot create it - you can only read the comments that are already in document. The posiibilty for Comment creation will be added in a future versions of Aspose.Words.

Comment can contain Paragraph and Table child nodes. If you want to add some content to comment, then you need to add paragraph nodes to it, and add runs of text to the paragraph.

Use Author, Date and Initial properties of Comment class to edit corresponding information.

If you want to add comments to the document as a whole use Document.BuildInDocumentProperties.Comments property.