public bool HasRowspan(int rowIdx)
{
if (rowIdx < rows.Count && GetRow(rowIdx).HasRowspan())
{
return true;
}
PdfPRow previousRow = rowIdx > 0 ? GetRow(rowIdx - 1) : null;
if (previousRow != null && previousRow.HasRowspan()) {
return true;
}
for (int i = 0; i < NumberOfColumns; i++)
{
if (RowSpanAbove(rowIdx - 1, i))
return true;
}
return false;
}