|
java.lang.Object
Node
CompositeNode
InlineStory
com.aspose.words.Comment
- All Implemented Interfaces:
- java.lang.Iterable, java.lang.Iterable, java.lang.Cloneable
public class Comment - extends InlineStory
Represents a container for text of a comment.
Comment is an inline-level node and can only be a child of Paragraph. Comment can contain Paragraph and Table child nodes. Example: Shows how to add a comment to a paragraph in the document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write("Some text is added.");
Comment comment = new Comment(doc);
builder.getCurrentParagraph().appendChild(comment);
comment.getParagraphs().add(new Paragraph(doc));
comment.getFirstParagraph().getRuns().add(new Run(doc, "Comment text."));
|
Constructor Summary |
Comment(Document doc)
Initializes a new instance of the Comment class.
|
|