int numParagraphs = _range.numParagraphs();
int numRows = 0;
int startIndex = _index;
int endIndex = _index;
for (;_index < numParagraphs; _index++)
{
Paragraph paragraph = _range.getParagraph(_index);
if (!paragraph.isInTable() || paragraph.getTableLevel() < _levelNum)
{
endIndex = _index;
break;
}
}
return new Table(startIndex, endIndex, _range, _levelNum);