iTextSharp.text.pdf.PdfPRow.CopyRowContent C# (CSharp) Метод

CopyRowContent() публичный Метод

public CopyRowContent ( PdfPTable table, int idx ) : void
table PdfPTable
idx int
Результат void
        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;
                }
            }
        }