public void CopyRowContent(PdfPTable table, int idx)
{
if (table == null) {
return;
}
PdfPCell copy;
for (int i = 0; i < cells.Length; ++i) {
int lastRow = idx;
copy = table.GetRow(lastRow).GetCells()[i];
while (copy == null && lastRow > 0) {
copy = table.GetRow(--lastRow).GetCells()[i];
}
if (cells[i] != null && copy != null) {
cells[i].Column = copy.Column;
this.calculated = false;
}
}
}