/** * @return The {@link XWPFDocument} instance, this run.belongs to, or * <code>null</code> if parent structure (paragraph > document) is not properly Set. */ public XWPFDocument GetDocument() { if (paragraph != null) { return(paragraph.GetDocument()); } return(null); }
public XWPFCommentsDecorator(XWPFParagraph paragraph, XWPFParagraphDecorator nextDecorator) : base(paragraph, nextDecorator) { ; XWPFComment comment; commentText = new StringBuilder(); foreach (CT_MarkupRange anchor in paragraph.GetCTP().GetCommentRangeStartList()) { if ((comment = paragraph.GetDocument().GetCommentByID(anchor.id)) != null) commentText.Append("\tComment by " + comment.GetAuthor() + ": " + comment.GetText()); } }