internal Paragraph(PAPX papx, Range parent) : base(Math.Max(parent._start, papx.Start), Math.Min(parent._end, papx.End), parent) { _props = papx.GetParagraphProperties(_doc.GetStyleSheet()); _papx = papx.GetSprmBuf(); _istd = papx.GetIstd(); }
/** * Gets the paragraph at index. The index is relative to this range. * * @param index * The index of the paragraph to Get. * @return The paragraph at the specified index in this range. */ public Paragraph GetParagraph(int index) { InitParagraphs(); PAPX papx = _paragraphs[index + _parStart]; ParagraphProperties props = papx.GetParagraphProperties(_doc.GetStyleSheet()); Paragraph pap = null; if (props.GetIlfo() > 0) { pap = new ListEntry(papx, this, _doc.GetListTables()); } else { if (((index + _parStart) == 0) && papx.Start > 0) { pap = new Paragraph(papx, this, 0); } else { pap = new Paragraph(papx, this); } } return(pap); }
internal Paragraph(int startIdx, int endIdx, Table parent) : base(startIdx, endIdx, parent) { InitAll(); PAPX papx = (PAPX)_paragraphs[_parEnd - 1]; _props = papx.GetParagraphProperties(_doc.GetStyleSheet()); _papx = papx.GetSprmBuf(); _istd = papx.GetIstd(); }